theming_example.routing.yml

Same filename in other branches
  1. 3.x modules/theming_example/theming_example.routing.yml
modules/theming_example/theming_example.routing.yml
1 string reference to YAML keys in theming_example.routing.yml
ThemingPageController::entryPage in modules/theming_example/src/Controller/ThemingPageController.php
Initial landing page explaining the use of the module.

File

modules/theming_example/theming_example.routing.yml

View source
  1. # Main page of the theming example.
  2. theming_example.entry:
  3. path: '/examples/theming_example'
  4. defaults:
  5. _controller: '\Drupal\theming_example\Controller\ThemingPageController::entryPage'
  6. _title: 'Theming example'
  7. requirements:
  8. _permission: 'access content'
  9. theming_example.list:
  10. path: '/examples/theming_example/list'
  11. defaults:
  12. _controller: '\Drupal\theming_example\Controller\ThemingPageController::list'
  13. _title: 'Theming a list'
  14. requirements:
  15. _permission: 'access content'
  16. theming_example.form_select:
  17. path: '/examples/theming_example/form_select'
  18. defaults:
  19. _form: '\Drupal\theming_example\Form\SelectForm'
  20. _title: 'Theming a form (select form)'
  21. requirements:
  22. _permission: 'access content'
  23. theming_example.form_text:
  24. path: '/examples/theming_example/form_text'
  25. defaults:
  26. _form: '\Drupal\theming_example\Form\TextForm'
  27. _title: 'Theming a form (text form)'
  28. requirements:
  29. _permission: 'access content'