events_example.routing.yml in Examples for Developers 8
events_example/events_example.routing.yml
2 string references to YAML keys in events_example.routing.yml
- EventsExampleTest::testEventsExample in events_example/
tests/ src/ Functional/ EventsExampleTest.php - Test the output of the example page.
- _examples_toolbar_routes in ./
examples.module - Get a list of toolbar links to provide.
File
events_example/events_example.routing.ymlView source
- # Define a route for our event dispatching example.
- events_example.description:
- path: '/examples/events-example'
- defaults:
- _form: '\Drupal\events_example\Form\EventsExampleForm'
- _title: 'Events Example'
- requirements:
- _permission: 'access content'