public function MenuExampleController::basicInstructions in Examples for Developers 3.x
Same name and namespace in other branches
- 8 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(),
];
}