You are here

public function MenuExampleController::basicInstructions in Examples for Developers 3.x

Same name and namespace in other branches
  1. 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\Controller

Code

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