contact.routing.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. entity.contact_form.delete_form:
  2. path: '/admin/structure/contact/manage/{contact_form}/delete'
  3. defaults:
  4. _entity_form: 'contact_form.delete'
  5. _title: 'Delete'
  6. requirements:
  7. _entity_access: 'contact_form.delete'
  8. entity.contact_form.collection:
  9. path: '/admin/structure/contact'
  10. defaults:
  11. _entity_list: 'contact_form'
  12. _title: 'Contact forms'
  13. requirements:
  14. _permission: 'administer contact forms'
  15. contact.form_add:
  16. path: '/admin/structure/contact/add'
  17. defaults:
  18. _entity_form: 'contact_form.add'
  19. _title: 'Add contact form'
  20. requirements:
  21. _permission: 'administer contact forms'
  22. entity.contact_form.edit_form:
  23. path: '/admin/structure/contact/manage/{contact_form}'
  24. defaults:
  25. _entity_form: 'contact_form.edit'
  26. _title: 'Edit contact form'
  27. requirements:
  28. _entity_access: 'contact_form.update'
  29. contact.site_page:
  30. path: '/contact'
  31. defaults:
  32. _title: 'Contact'
  33. _controller: '\Drupal\contact\Controller\ContactController::contactSitePage'
  34. contact_form: NULL
  35. requirements:
  36. _permission: 'access site-wide contact form'
  37. entity.contact_form.canonical:
  38. path: '/contact/{contact_form}'
  39. defaults:
  40. _title: 'Contact'
  41. _controller: '\Drupal\contact\Controller\ContactController::contactSitePage'
  42. requirements:
  43. _entity_access: 'contact_form.view'
  44. entity.user.contact_form:
  45. path: '/user/{user}/contact'
  46. defaults:
  47. _title: 'Contact'
  48. _controller: '\Drupal\contact\Controller\ContactController::contactPersonalPage'
  49. requirements:
  50. _access_contact_personal_tab: 'TRUE'
  51. user: \d+