You are here

bat_event.routing.yml in Booking and Availability Management Tools for Drupal 8

modules/bat_event/bat_event.routing.yml

File

modules/bat_event/bat_event.routing.yml
View source
  1. bat.admin.events:
  2. path: '/admin/bat/events'
  3. defaults:
  4. _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  5. _title: 'Events'
  6. requirements:
  7. _permission: 'access administration pages'
  8. # State routing definition
  9. entity.state.canonical:
  10. path: '/admin/bat/events/state/{state}'
  11. defaults:
  12. _entity_view: 'state'
  13. _title: 'State'
  14. requirements:
  15. _entity_access: 'state.view'
  16. options:
  17. _admin_route: TRUE
  18. entity.state.collection:
  19. path: '/admin/bat/events/state'
  20. defaults:
  21. _entity_list: 'state'
  22. _title: 'State'
  23. requirements:
  24. _permission: 'administer state entities'
  25. options:
  26. _admin_route: TRUE
  27. entity.state.add_form:
  28. path: '/admin/bat/events/state/add'
  29. defaults:
  30. _entity_form: 'state.add'
  31. _title: 'Add State'
  32. requirements:
  33. _permission: 'administer state entities'
  34. options:
  35. _admin_route: TRUE
  36. entity.state.edit_form:
  37. path: '/admin/bat/events/state/{state}/edit'
  38. defaults:
  39. _entity_form: 'state.edit'
  40. _title: 'Edit State'
  41. requirements:
  42. _permission: 'administer state entities'
  43. options:
  44. _admin_route: TRUE
  45. entity.state.delete_form:
  46. path: '/admin/bat/events/state/{state}/delete'
  47. defaults:
  48. _entity_form: 'state.delete'
  49. _title: 'Delete State'
  50. requirements:
  51. _permission: 'administer state entities'
  52. options:
  53. _admin_route: TRUE
  54. # Event routing definition
  55. entity.bat_event.canonical:
  56. path: '/admin/bat/events/event/{bat_event}'
  57. defaults:
  58. _entity_view: 'bat_event'
  59. _title: 'Event'
  60. requirements:
  61. _entity_access: 'bat_event.view'
  62. options:
  63. _admin_route: TRUE
  64. entity.bat_event.collection:
  65. path: '/admin/bat/events/event'
  66. defaults:
  67. _entity_list: 'bat_event'
  68. _title: 'Event list'
  69. requirements:
  70. _permission: 'bypass bat_event entities access'
  71. options:
  72. _admin_route: TRUE
  73. entity.bat_event.add_page:
  74. path: '/admin/bat/events/event/add'
  75. defaults:
  76. _title: 'Add event'
  77. _controller: '\Drupal\bat_event\Controller\EventController::addPage'
  78. requirements:
  79. _event_add_access: 'bat_event'
  80. options:
  81. _admin_route: TRUE
  82. entity.bat_event.add_form:
  83. path: '/admin/bat/events/event/add/{event_type}'
  84. defaults:
  85. _controller: '\Drupal\bat_event\Controller\EventController::add'
  86. _title_callback: '\Drupal\bat_event\Controller\EventController::addPageTitle'
  87. requirements:
  88. _event_add_access: 'bat_event:{event_type}'
  89. options:
  90. _admin_route: TRUE
  91. parameters:
  92. event_type:
  93. type: entity:bat_event_type
  94. with_config_overrides: TRUE
  95. entity.bat_event.edit_form:
  96. path: '/admin/bat/events/event/{bat_event}/edit'
  97. defaults:
  98. _entity_form: 'bat_event.edit'
  99. _title: 'Edit Event'
  100. requirements:
  101. _entity_access: 'bat_event.update'
  102. options:
  103. _admin_route: TRUE
  104. entity.bat_event.delete_form:
  105. path: '/admin/bat/events/event/{bat_event}/delete'
  106. defaults:
  107. _entity_form: 'bat_event.delete'
  108. _title: 'Delete Event'
  109. requirements:
  110. _entity_access: 'bat_event.delete'
  111. options:
  112. _admin_route: TRUE
  113. entity.bat_event_type.collection:
  114. path: '/admin/bat/events/event/event-types'
  115. defaults:
  116. _entity_list: 'bat_event_type'
  117. _title: 'Event Type list'
  118. requirements:
  119. _permission: 'administer bat_event_type entities'
  120. options:
  121. _admin_route: TRUE
  122. entity.bat_event_type.type_add:
  123. path: '/admin/bat/events/event/event-types/add'
  124. defaults:
  125. _entity_form: 'bat_event_type.add'
  126. _title: 'Add event type'
  127. requirements:
  128. _permission: 'administer bat_event_type entities'
  129. entity.bat_event_type.edit_form:
  130. path: '/admin/bat/events/event/event-types/{bat_event_type}/edit'
  131. defaults:
  132. _entity_form: 'bat_event_type.edit'
  133. _title: 'Edit Event type'
  134. requirements:
  135. _permission: 'administer bat_event_type entities'
  136. options:
  137. _admin_route: TRUE
  138. entity.bat_event_type.delete_form:
  139. path: '/admin/bat/events/event/event-types/{bat_event_type}/delete'
  140. defaults:
  141. _entity_form: 'bat_event_type.delete'
  142. _title: 'Delete'
  143. requirements:
  144. _permission: 'administer bat_event_type entities'