[uml] DemoPageController

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

Webel module:


UML element type:

OOE stereotypes:

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:


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);
    return $this->menuItemControlled;
Notes (policies)
Visit also