You are here

rng.routing.yml in RNG - Events and Registrations 8.2

Same filename and directory in other branches
  1. 8 rng.routing.yml
  2. 3.x rng.routing.yml

File

rng.routing.yml
View source
  1. # registration entities
  2. # Registration add: rng.event.{entity_type_of_event}.register
  3. # See \Drupal\rng\Routing\RouteSubscriber for more info.
  4. entity.registration.canonical:
  5. path: '/registration/{registration}'
  6. defaults:
  7. _entity_view: 'registration'
  8. _title: 'Registration'
  9. requirements:
  10. _entity_access: 'registration.view'
  11. entity.registration.edit_form:
  12. path: '/registration/{registration}/edit'
  13. defaults:
  14. _entity_form: 'registration.edit'
  15. _title: 'Edit registration'
  16. requirements:
  17. _entity_access: 'registration.update'
  18. entity.registration.delete_form:
  19. path: '/registration/{registration}/delete'
  20. defaults:
  21. _entity_form: 'registration.delete'
  22. _title: 'Delete registration'
  23. requirements:
  24. _entity_access: 'registration.delete'
  25. entity.registration.registrants:
  26. path: '/registration/{registration}/registrants'
  27. defaults:
  28. _entity_form: 'registration.registrants'
  29. _title: 'Edit identities'
  30. requirements:
  31. _entity_access: 'registration.update'
  32. # registration_type entities
  33. entity.registration_type.add:
  34. path: '/admin/structure/rng/registration_types/add'
  35. defaults:
  36. _entity_form: 'registration_type.add'
  37. _title: 'Add registration type'
  38. requirements:
  39. _permission: 'administer registration types'
  40. entity.registration_type.canonical:
  41. path: '/admin/structure/rng/registration_types/manage/{registration_type}'
  42. defaults:
  43. _entity_form: 'registration_type.edit'
  44. _title: 'Edit registration type'
  45. requirements:
  46. _permission: 'administer registration types'
  47. entity.registration_type.edit_form:
  48. path: '/admin/structure/rng/registration_types/manage/{registration_type}'
  49. defaults:
  50. _entity_form: 'registration_type.edit'
  51. _title: 'Edit registration type'
  52. requirements:
  53. _permission: 'administer registration types'
  54. entity.registration_type.delete_form:
  55. path: '/admin/structure/rng/registration_types/manage/{registration_type}/delete'
  56. defaults:
  57. _entity_form: 'registration_type.delete'
  58. _title: 'Delete registration type'
  59. requirements:
  60. _permission: 'administer registration types'
  61. rng.registration_type.overview:
  62. path: '/admin/structure/rng/registration_types'
  63. defaults:
  64. _controller: '\Drupal\Core\Entity\Controller\EntityListController::listing'
  65. entity_type: 'registration_type'
  66. _title: 'Registration types'
  67. requirements:
  68. _permission: 'administer registration types'
  69. # registration group entities
  70. entity.registration_group.canonical:
  71. path: '/rng/group/{registration_group}/edit'
  72. defaults:
  73. _entity_form: 'registration_group.edit'
  74. _title: 'Edit registration group'
  75. requirements:
  76. _entity_access: 'registration_group.update'
  77. entity.registration_group.edit_form:
  78. path: '/rng/group/{registration_group}/edit'
  79. defaults:
  80. _entity_form: 'registration_group.edit'
  81. _title: 'Edit registration group'
  82. requirements:
  83. _entity_access: 'registration_group.update'
  84. entity.registration_group.delete_form:
  85. path: '/rng/group/{registration_group}/delete'
  86. defaults:
  87. _entity_form: 'registration_group.delete'
  88. _title: 'Delete registration group'
  89. requirements:
  90. _entity_access: 'registration_group.delete'
  91. # rule entities
  92. entity.rng_rule.delete_form:
  93. path: '/rng/rule/{rng_rule}/delete'
  94. defaults:
  95. _entity_form: 'rng_rule.delete'
  96. _title: 'Delete rule'
  97. requirements:
  98. _entity_access: 'rng_rule.delete'
  99. # rule component entities
  100. entity.rng_rule_component.canonical:
  101. path: '/rng/component/{rng_rule_component}/edit'
  102. defaults:
  103. _entity_form: 'rng_rule_component.edit'
  104. _title: 'Edit component'
  105. requirements:
  106. _entity_access: 'rng_rule_component.update'
  107. entity.rng_rule_component.edit_form:
  108. path: '/rng/component/{rng_rule_component}/edit'
  109. defaults:
  110. _entity_form: 'rng_rule_component.edit'
  111. _title: 'Edit component'
  112. requirements:
  113. _entity_access: 'rng_rule_component.update'
  114. # event_type entities
  115. entity.rng_event_type.add:
  116. path: '/admin/structure/rng/event_types/add'
  117. defaults:
  118. _entity_form: 'rng_event_type.add'
  119. _title: 'Add RNG event type'
  120. requirements:
  121. _permission: 'administer event types'
  122. entity.rng_event_type.edit_form:
  123. path: '/admin/structure/rng/event_types/manage/{rng_event_type}/edit'
  124. defaults:
  125. _entity_form: 'rng_event_type.edit'
  126. _title: 'Edit event type'
  127. requirements:
  128. _permission: 'administer event types'
  129. entity.rng_event_type.delete_form:
  130. path: '/admin/structure/rng/event_types/manage/{rng_event_type}/delete'
  131. defaults:
  132. _entity_form: 'rng_event_type.delete'
  133. _title: 'Delete event type'
  134. requirements:
  135. _permission: 'administer event types'
  136. entity.rng_event_type.access_defaults:
  137. path: '/admin/structure/rng/event_types/manage/{rng_event_type}/access_defaults'
  138. defaults:
  139. _entity_form: 'rng_event_type.event_access_defaults'
  140. _title: 'Event type access defaults'
  141. requirements:
  142. _permission: 'administer event types'
  143. entity.rng_event_type.default_messages:
  144. path: '/admin/structure/rng/event_types/manage/{rng_event_type}/messages'
  145. defaults:
  146. _entity_form: 'rng_event_type.event_default_messages'
  147. _title: 'Event type Default messages'
  148. requirements:
  149. _permission: 'administer event types'
  150. entity.rng_event_type.default_messages.add:
  151. path: '/admin/structure/rng/event_types/manage/{rng_event_type}/messages/add'
  152. defaults:
  153. _form: '\Drupal\rng\Form\EventTypeDefaultMessagesAddForm'
  154. _title: 'Add message'
  155. options:
  156. parameters:
  157. rng_event_type:
  158. type: entity:rng_event_type
  159. requirements:
  160. _permission: 'administer event types'
  161. entity.rng_event_type.field_mapping:
  162. path: '/admin/structure/rng/event_types/manage/{rng_event_type}/field_mapping'
  163. defaults:
  164. _entity_form: 'rng_event_type.field_mapping'
  165. _title: 'Field mapping'
  166. requirements:
  167. _permission: 'administer event types'
  168. entity.rng_event_type.access_defaults.delete_all:
  169. path: '/admin/structure/rng/event_types/manage/{rng_event_type}/access_defaults/delete'
  170. defaults:
  171. _form: '\Drupal\rng\Form\EventTypeRuleDeleteAll'
  172. _title: 'Delete all event custom rules'
  173. requirements:
  174. _permission: 'administer event types'
  175. options:
  176. parameters:
  177. rng_event_type_rule:
  178. type: 'entity:rng_event_type_rule'
  179. rng.rng_event_type.overview:
  180. path: '/admin/structure/rng/event_types'
  181. defaults:
  182. _controller: '\Drupal\Core\Entity\Controller\EntityListController::listing'
  183. entity_type: 'rng_event_type'
  184. _title: 'Event types'
  185. requirements:
  186. _permission: 'administer event types'
  187. # Event type rules
  188. rng.rng_event_type_rule.component.edit:
  189. path: '/admin/structure/rng/event_type_rule/{rng_event_type_rule}/{component_type}/{component_id}/edit'
  190. defaults:
  191. _form: '\Drupal\rng\Form\EventTypeRuleComponentEdit'
  192. _title: 'Component edit'
  193. requirements:
  194. _permission: 'administer event types'
  195. options:
  196. parameters:
  197. rng_event_type_rule:
  198. type: 'entity:rng_event_type_rule'
  199. component_type:
  200. type: 'rng_component_type'
  201. component_id:
  202. type: 'rng_component_id'
  203. # RNG Structure overview
  204. rng.structure:
  205. path: '/admin/structure/rng'
  206. defaults:
  207. _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  208. _title: 'RNG'
  209. requirements:
  210. _permission: 'access administration pages'
  211. # RNG Configuration
  212. rng.config:
  213. path: '/admin/config/rng'
  214. defaults:
  215. _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  216. _title: 'RNG'
  217. requirements:
  218. _permission: 'access administration pages'
  219. rng.config.settings:
  220. path: '/admin/config/rng/settings'
  221. defaults:
  222. _form: '\Drupal\rng\Form\RngSettingsForm'
  223. _title: 'RNG settings'
  224. requirements:
  225. _permission: 'administer rng'
  226. rng.config.plugin.condition:
  227. path: '/admin/config/rng/plugin/condition'
  228. defaults:
  229. _form: '\Drupal\rng\Form\PluginConditionSettingsForm'
  230. _title: 'Condition settings'
  231. requirements:
  232. _permission: 'administer rng'