You are here

public function MenuExampleController::basicInstructions in Examples for Developers 8

Same name and namespace 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

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(),
  ];
}