You are here

legal.routing.yml in Legal 8

Same filename and directory in other branches
  1. 2.0.x legal.routing.yml

File

legal.routing.yml
View source
  1. legal.config_legal:
  2. path: '/admin/config/people/legal'
  3. defaults:
  4. _form: '\Drupal\legal\Form\LegalAdminTermsForm'
  5. _title: 'Legal'
  6. requirements:
  7. _permission: 'administer Terms and Conditions'
  8. legal.config_terms:
  9. path: '/admin/config/people/legal/terms'
  10. defaults:
  11. _form: '\Drupal\legal\Form\LegalAdminTermsForm'
  12. _title: 'Add T&C'
  13. requirements:
  14. _permission: 'administer Terms and Conditions'
  15. legal.config_settings:
  16. path: '/admin/config/people/legal/settings'
  17. defaults:
  18. _form: '\Drupal\legal\Form\LegalAdminSettingsForm'
  19. _title: 'Configure T&C'
  20. requirements:
  21. _permission: 'administer Terms and Conditions'
  22. legal.config_language:
  23. path: '/admin/config/people/legal/languages'
  24. defaults:
  25. _form: '\Drupal\legal\Form\LegalLanguageSettings'
  26. _title: 'Languages'
  27. requirements:
  28. _custom_access: '\Drupal\legal\Form\LegalLanguageSettings::access'
  29. _permission: 'administer Terms and Conditions'
  30. legal.legal:
  31. path: '/legal'
  32. defaults:
  33. _controller: '\Drupal\legal\Controller\LegalController::legalPageAction'
  34. _title: 'Terms and Conditions'
  35. requirements:
  36. _permission: 'view Terms and Conditions'
  37. legal.legal_login:
  38. path: '/legal_accept'
  39. defaults:
  40. _form: '\Drupal\legal\Form\LegalLogin'
  41. _title: 'Terms and Conditions'
  42. requirements:
  43. _custom_access: '\Drupal\legal\Form\LegalLogin::access'
  44. options:
  45. user: \d+