testing_example.routing.yml

Same filename in other branches
  1. 3.x modules/testing_example/testing_example.routing.yml
  2. 8.x-1.x testing_example/testing_example.routing.yml
modules/testing_example/testing_example.routing.yml
2 string references to YAML keys in testing_example.routing.yml
PHPUnitExampleMenuTest::testLinksAndPages in modules/testing_example/tests/src/Functional/PHPUnitExampleMenuTest.php
Verify and validate that default menu links were loaded for this module.
_examples_toolbar_routes in ./examples.module
Get a list of toolbar links for testing toolbar routes.

File

modules/testing_example/testing_example.routing.yml

View source
  1. # This route is to a page explaining the module.
  2. testing_example.description:
  3. path: '/examples/testing-example'
  4. defaults:
  5. _controller: '\Drupal\testing_example\Controller\TestingExampleController::description'
  6. requirements:
  7. _permission: 'access content'
  8. testing_example.simpletest_description:
  9. path: '/examples/testing-example/simpletest'
  10. defaults:
  11. _controller: '\Drupal\testing_example\Controller\TestingExampleController::simpletestDescription'
  12. requirements:
  13. _permission: 'access content'
  14. testing_example.phpunit_description:
  15. path: '/examples/testing-example/phpunit'
  16. defaults:
  17. _controller: '\Drupal\testing_example\Controller\TestingExampleController::phpUnitDescription'
  18. requirements:
  19. _permission: 'access content'
  20. # This route displays a sum of two numbers in terms of how many hands are
  21. # required to count it.
  22. testing_example.sum_in_hands:
  23. path: '/examples/testing-example/sum-in-hands/{first}/{second}'
  24. defaults:
  25. _controller: '\Drupal\testing_example\Controller\ContrivedController::displayAddedNumbers'
  26. first: 23
  27. second: 77
  28. requirements:
  29. _permission: 'access content'
  30. first: '^[0-9]+'
  31. second: '^[0-9]+'