You are here

routing_access_test.routing.yml in Coder 8.3

Same filename and directory in other branches
  1. 8.3.x tests/DrupalPractice/Yaml/routing_access_test.routing.yml
tests/DrupalPractice/Yaml/routing_access_test.routing.yml

File

tests/DrupalPractice/Yaml/routing_access_test.routing.yml
View source
  1. example.test:
  2. path: '/example'
  3. defaults:
  4. _form: '\Drupal\user\Form\UserPasswordForm'
  5. _title: 'Reset your password'
  6. requirements:
  7. _access: 'TRUE'
  8. options:
  9. _maintenance_access: TRUE
  10. example.test2:
  11. path: '/example2'
  12. defaults:
  13. _form: '\Drupal\user\Form\UserPasswordForm'
  14. _title: 'Reset your password'
  15. requirements:
  16. # Here is a comment why this open access callback is OK.
  17. _access: 'TRUE'
  18. options:
  19. _maintenance_access: TRUE
  20. example.test3:
  21. path: '/example3'
  22. defaults:
  23. _form: '\Drupal\user\Form\UserPasswordForm'
  24. _title: 'Reset your password'
  25. requirements:
  26. _permission: 'access administration pages'
  27. options:
  28. _maintenance_access: TRUE