[uml] DemoPageController

REFACTOR: this software engineering content is flagged as under consideration for refactoring.

Webel module:

Package/Namespace: 

UML element type:

OOE stereotypes:

Relationships
extends [Generalization]: 
UML Diagram
Click on the UML diagram to view it in a lightbox image viewer. You may then zoom in (or just open the image in a new web browser tab using the Download Original link to view large diagrams).

UML modelling domain:

Refactoring

Consider repackaging into Drupal\ooe\Demo\Arguments to reflect closeness to page arguments extraction demo.

Code examples

From DemoOfPageArguments :

  private $demoPageController;
 
  protected function demoPageController() {
    if (empty($this->demoPageController)) {
      $this->demoPageController = new DemoPageController();
      //TODO: how inject MODULE when PageController creates with noargs constructor ?
    }
    return $this->demoPageController;
  }
 
  private $menuItemControlled;
 
  protected function menuItemControlled() {
    if (empty($this->menuItemControlled)) {
      $description = "Demonstrates extraction of page callback path arguments for a menu item with an OOE IPageController";
      $this->menuItemControlled = $this->newSubPageMenuItem($this->demoPageController(), DemoPageController::DEMO_NAME, $description);
      $this->menuItemControlled->setAccessArguments($this->accessArguments());
      $this->menuItemControlled->setWeight($this->incMenuWeightCounter());
    }
    return $this->menuItemControlled;
  }
Notes (policies)
Demos
Visit also