testing_example.routing.yml
Same filename in other branches
1 string reference to YAML keys in testing_example.routing.yml
- _examples_toolbar_routes in ./
examples.module - Get a list of toolbar links to provide.
File
-
modules/
testing_example/ testing_example.routing.yml
View source
- # This route is to a page explaining the module.
- testing_example.description:
- path: '/examples/testing-example'
- defaults:
- _controller: '\Drupal\testing_example\Controller\TestingExampleController::description'
- requirements:
- _permission: 'access content'
-
- testing_example.simpletest_description:
- path: '/examples/testing-example/simpletest'
- defaults:
- _controller: '\Drupal\testing_example\Controller\TestingExampleController::simpletestDescription'
- requirements:
- _permission: 'access content'
-
- # This route displays a sum of two numbers in terms of how many hands are
- # required to count it.
- testing_example.sum_in_hands:
- path: '/examples/testing-example/sum-in-hands/{first}/{second}'
- defaults:
- _controller: '\Drupal\testing_example\Controller\ContrivedController::displayAddedNumbers'
- first: 23
- second: 77
- requirements:
- _permission: 'access content'
- first: '^[0-9]+'
- second: '^[0-9]+'