hooks_example.routing.yml

Same filename in other branches
  1. 3.x modules/hooks_example/hooks_example.routing.yml
  2. 4.0.x modules/hooks_example/hooks_example.routing.yml
hooks_example/hooks_example.routing.yml
1 string reference to YAML keys in hooks_example.routing.yml
_examples_toolbar_routes in ./examples.module
Get a list of toolbar links to provide.

File

hooks_example/hooks_example.routing.yml

View source
  1. # hooks_example only has one route. It is to a page explaining the module.
  2. hooks_example.description:
  3. path: '/examples/hooks-example'
  4. defaults:
  5. _controller: '\Drupal\hooks_example\Controller\HooksExampleController::description'
  6. _title: 'Hooks Example'
  7. requirements:
  8. _permission: 'access content'