You are here

mailing_list.routing.yml in Mailing List 8

File

mailing_list.routing.yml
View source
  1. entity.mailing_list.collection:
  2. path: '/admin/structure/mailing-lists'
  3. defaults:
  4. _entity_list: 'mailing_list'
  5. _title: 'Mailing lists'
  6. requirements:
  7. _permission: 'administer mailing lists'
  8. mailing_list.list_add:
  9. path: '/admin/structure/mailing-lists/add'
  10. defaults:
  11. _entity_form: 'mailing_list.add'
  12. _title: 'Add mailing list'
  13. requirements:
  14. _permission: 'administer mailing lists'
  15. entity.mailing_list.edit_form:
  16. path: '/admin/structure/mailing-lists/manage/{mailing_list}'
  17. defaults:
  18. _entity_form: 'mailing_list.edit'
  19. requirements:
  20. _permission: 'administer mailing lists'
  21. entity.mailing_list.delete_form:
  22. path: '/admin/structure/mailing-lists/manage/{mailing_list}/delete'
  23. defaults:
  24. _entity_form: 'mailing_list.delete'
  25. _title: 'Delete'
  26. requirements:
  27. _entity_access: 'mailing_list.delete'
  28. entity.mailing_list.export:
  29. path: '/admin/structure/mailing-lists/manage/{mailing_list}/export'
  30. defaults:
  31. _form: '\Drupal\mailing_list\Form\MailingListExportForm'
  32. _title: 'Mailing list subscription export'
  33. options:
  34. _admin_route: TRUE
  35. requirements:
  36. _permission: 'administer mailing list subscriptions'
  37. entity.mailing_list.import:
  38. path: '/admin/structure/mailing-lists/manage/{mailing_list}/import'
  39. defaults:
  40. _form: '\Drupal\mailing_list\Form\MailingListImportForm'
  41. _title: 'Mailing list subscription import'
  42. options:
  43. _admin_route: TRUE
  44. requirements:
  45. _permission: 'administer mailing list subscriptions'
  46. entity.mailing_list_subscription.collection:
  47. path: '/admin/people/mailing-list-subscription'
  48. defaults:
  49. _entity_list: 'mailing_list_subscription'
  50. _title: 'Mailing list subscriptions'
  51. options:
  52. _admin_route: TRUE
  53. requirements:
  54. _permission: 'administer mailing list subscriptions'
  55. entity.mailing_list_subscription.manage:
  56. path: '/mailing-list/subscription'
  57. defaults:
  58. _entity_list: 'mailing_list_subscription'
  59. _title: 'Your mailing list subscriptions'
  60. requirements:
  61. _subscription_add_access: 'true'
  62. entity.mailing_list_subscription.add_form:
  63. path: '/mailing-list/subscribe/{mailing_list}'
  64. defaults:
  65. _controller: '\Drupal\mailing_list\Controller\MailingListController::subscribeForm'
  66. _title: 'Subscribe'
  67. options:
  68. _admin_route: TRUE
  69. requirements:
  70. _entity_create_access: 'mailing_list_subscription:{mailing_list}'
  71. entity.mailing_list_subscription.edit_form:
  72. path: '/mailing-list/subscription/{mailing_list_subscription}/edit'
  73. defaults:
  74. _entity_form: 'mailing_list_subscription.edit'
  75. _title: 'Edit subscription'
  76. options:
  77. _admin_route: TRUE
  78. requirements:
  79. _entity_access: 'mailing_list_subscription.update'
  80. mailing_list_subscription: \d+
  81. entity.mailing_list_subscription.delete_form:
  82. path: '/mailing-list/subscription/{mailing_list_subscription}/cancel'
  83. defaults:
  84. _entity_form: 'mailing_list_subscription.delete'
  85. _title: 'Cancel subscription'
  86. options:
  87. _admin_route: TRUE
  88. requirements:
  89. _entity_access: 'mailing_list_subscription.delete'
  90. mailing_list_subscription: \d+
  91. mailing_list.subscribe_page:
  92. path: '/mailing-list/subscribe'
  93. defaults:
  94. _title: 'Subscribe to mailing list'
  95. _controller: '\Drupal\mailing_list\Controller\MailingListController::subscribePage'
  96. requirements:
  97. _subscription_add_access: 'true'
  98. mailing_list.subscribe:
  99. path: '/mailing-list/subscribe/{mailing_list}'
  100. defaults:
  101. _title: 'Subscribe to mailing list'
  102. _entity_form: mailing_list_subscription.add
  103. requirements:
  104. _subscription_add_access: 'mailing_list:{mailing_list}'
  105. options:
  106. _admin_route: TRUE
  107. parameters:
  108. mailing_list:
  109. type: entity:mailing_list
  110. with_config_overrides: TRUE
  111. mailing_list.access_subscription:
  112. path: '/mailing-list/subscription/{sid}/access/{hash}/{rel}'
  113. defaults:
  114. _title: 'Access subscription'
  115. _controller: '\Drupal\mailing_list\Controller\MailingListController::accessSubscription'
  116. requirements:
  117. _access: 'TRUE'
  118. sid: ^[0-9]+$
  119. hash: ^[a-zA-Z0-9\-_]{43}$
  120. rel: ^(canonical|edit-form|delete-form|manage|form-destination)$