function MenuExampleController::basicInstructions
Same name in other branches
- 8.x-1.x menu_example/src/Controller/MenuExampleController.php \Drupal\menu_example\Controller\MenuExampleController::basicInstructions()
- 4.0.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\ControllerCode
public function basicInstructions() {
return [
$this->description(),
];
}