You are here

hooks_example.routing.yml in Examples for Developers 3.x

modules/hooks_example/hooks_example.routing.yml

File

modules/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'