function MenuExampleController::basicInstructions

Same name in other branches
  1. 3.x modules/menu_example/src/Controller/MenuExampleController.php \Drupal\menu_example\Controller\MenuExampleController::basicInstructions()

Page callback for the simplest introduction menu entry.

The controller callback defined menu_examples.routing.yml file, maps the path 'examples/menu-example' to this method.

Throws

\InvalidArgumentException

File

modules/menu_example/src/Controller/MenuExampleController.php, line 44

Class

MenuExampleController
Controller routines for menu example routes.

Namespace

Drupal\menu_example\Controller

Code

public function basicInstructions() {
    return [
        $this->description(),
    ];
}