You are here

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

modules/theming_example/theming_example.routing.yml

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'