You are here

opigno_group_manager.routing.yml in Opigno group manager 3.x

Same filename and directory in other branches
  1. 8 opigno_group_manager.routing.yml

File

opigno_group_manager.routing.yml
View source
  1. ### MANAGER ###
  2. opigno_group_manager.manager.index:
  3. path: '/group/{group}/manager'
  4. defaults:
  5. _controller: '\Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::index'
  6. _title: 'Group manager'
  7. requirements:
  8. _entity_access: 'group.update'
  9. options:
  10. parameters:
  11. group:
  12. type: entity:group
  13. account:
  14. type: entity:user
  15. opigno_group_manager.manager.get_items:
  16. path: '/group/{group}/get-items'
  17. methods: [GET]
  18. defaults:
  19. _controller: '\Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::getItems'
  20. requirements:
  21. _entity_access: 'group.update'
  22. options:
  23. parameters:
  24. group:
  25. type: entity:group
  26. opigno_group_manager.manager.get_positions:
  27. path: '/group/{group}/get-positions/{mainItem}'
  28. methods: [GET]
  29. defaults:
  30. _controller: '\Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::getPositions'
  31. mainItem: null
  32. requirements:
  33. _entity_access: 'group.update'
  34. options:
  35. parameters:
  36. group:
  37. type: entity:group
  38. opigno_group_manager.manager.set_positions:
  39. path: '/group/{group}/set-positions/{mainItem}'
  40. methods: [POST]
  41. defaults:
  42. _controller: '\Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::setPositions'
  43. mainItem: null
  44. requirements:
  45. _entity_access: 'group.update'
  46. options:
  47. parameters:
  48. group:
  49. type: entity:group
  50. opigno_group_manager.manager.create_item:
  51. path: '/group/{group}/create-item/{mainItem}'
  52. defaults:
  53. _controller: '\Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::createItem'
  54. mainItem: null
  55. requirements:
  56. _entity_access: 'group.update'
  57. options:
  58. parameters:
  59. group:
  60. type: entity:group
  61. opigno_group_manager.manager.update_entities:
  62. path: '/group/{group}/update-entities'
  63. methods: [POST]
  64. defaults:
  65. _controller: '\Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::updateEntities'
  66. requirements:
  67. _entity_access: 'group.update'
  68. options:
  69. parameters:
  70. group:
  71. type: entity:group
  72. opigno_group_manager.manager.add_item:
  73. path: '/group/{group}/add-item/{mainItem}'
  74. methods: [POST]
  75. defaults:
  76. _controller: '\Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::addItem'
  77. mainItem: null
  78. requirements:
  79. _entity_access: 'group.update'
  80. options:
  81. parameters:
  82. group:
  83. type: entity:group
  84. opigno_group_manager.manager.delete_item:
  85. path: '/group/{group}/remove-item/{mainItem}'
  86. methods: [POST]
  87. defaults:
  88. _controller: '\Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::removeItem'
  89. mainItem: null
  90. requirements:
  91. _entity_access: 'group.update'
  92. options:
  93. parameters:
  94. group:
  95. type: entity:group
  96. opigno_group_manager.manager.add_link:
  97. path: '/group/{group}/add-link/{mainItem}'
  98. methods: [POST]
  99. defaults:
  100. _controller: '\Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::addLink'
  101. mainItem: null
  102. requirements:
  103. _entity_access: 'group.update'
  104. options:
  105. parameters:
  106. group:
  107. type: entity:group
  108. opigno_group_manager.manager.update_link:
  109. path: '/group/{group}/update-link/{mainItem}'
  110. methods: [POST]
  111. defaults:
  112. _controller: '\Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::updateLink'
  113. mainItem: null
  114. requirements:
  115. _entity_access: 'group.update'
  116. options:
  117. parameters:
  118. group:
  119. type: entity:group
  120. opigno_group_manager.manager.remove_link:
  121. path: '/group/{group}/remove-link/{mainItem}'
  122. methods: [POST]
  123. defaults:
  124. _controller: '\Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::removeLink'
  125. mainItem: null
  126. requirements:
  127. _entity_access: 'group.update'
  128. options:
  129. parameters:
  130. group:
  131. type: entity:group
  132. opigno_group_manager.manager.get_available_items:
  133. path: '/group/{group}/get-available-items/{mainItem}'
  134. methods: [GET]
  135. defaults:
  136. _controller: '\Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::getAvailableItems'
  137. mainItem: null
  138. requirements:
  139. _entity_access: 'group.update'
  140. options:
  141. parameters:
  142. group:
  143. type: entity:group
  144. opigno_group_manager.manager.get_available_item_types:
  145. path: '/group/{group}/get-item-types'
  146. methods: [GET]
  147. defaults:
  148. _controller: '\Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::getItemTypes'
  149. requirements:
  150. _entity_access: 'group.update'
  151. options:
  152. parameters:
  153. group:
  154. type: entity:group
  155. opigno_group_manager.manager.update_item_mandatory:
  156. path: '/group/{group}/update-mandatory'
  157. defaults:
  158. _controller: '\Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::updateItemMandatory'
  159. item: null
  160. requirements:
  161. _entity_access: 'group.update'
  162. options:
  163. parameters:
  164. group:
  165. type: entity:group
  166. opigno_group_manager.manager.update_item_minscore:
  167. path: '/group/{group}/update-min-score'
  168. defaults:
  169. _controller: '\Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::updateItemMinScore'
  170. item: null
  171. requirements:
  172. _entity_access: 'group.update'
  173. options:
  174. parameters:
  175. group:
  176. type: entity:group
  177. opigno_group_manager.manager.update_guided_navigation:
  178. path: '/group/{group}/update-guided-navigation'
  179. methods: [POST]
  180. defaults:
  181. _controller: '\Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::updateGuidedNavigation'
  182. requirements:
  183. _entity_access: 'group.update'
  184. options:
  185. parameters:
  186. group:
  187. type: entity:group
  188. opigno_group_manager.manager.get_guided_navigation:
  189. path: '/group/{group}/get-guided-navigation'
  190. methods: [GET]
  191. defaults:
  192. _controller: '\Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::getGuidedNavigationResponse'
  193. requirements:
  194. _entity_access: 'group.update'
  195. options:
  196. parameters:
  197. group:
  198. type: entity:group
  199. opigno_group.course_duplicate:
  200. path: '/admin/structure/course-duplicate/{group}'
  201. defaults:
  202. _controller: '\Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::courseDuplicate'
  203. _title: 'Course duplicate'
  204. requirements:
  205. _entity_access: 'group.update'
  206. options:
  207. parameters:
  208. group:
  209. type: entity:group
  210. account:
  211. type: entity:user
  212. opigno_group.course_export:
  213. path: '/admin/structure/opigno_export/opigno_course/{group}'
  214. defaults:
  215. _controller: '\Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::courseExport'
  216. _title: 'Course export'
  217. requirements:
  218. _entity_access: 'group.update'
  219. options:
  220. parameters:
  221. group:
  222. type: entity:group
  223. account:
  224. type: entity:user
  225. opigno_group.training_export:
  226. path: '/admin/structure/opigno_export/opigno_training/{group}'
  227. defaults:
  228. _controller: '\Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::trainingExport'
  229. _title: 'Training export'
  230. requirements:
  231. _entity_access: 'group.update'
  232. options:
  233. parameters:
  234. group:
  235. type: entity:group
  236. account:
  237. type: entity:user
  238. opigno_group.training_duplicate:
  239. path: '/admin/structure/training-duplicate/{group}'
  240. defaults:
  241. _controller: '\Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::trainingDuplicate'
  242. _title: 'Training duplicate'
  243. requirements:
  244. _entity_access: 'group.update'
  245. options:
  246. parameters:
  247. group:
  248. type: entity:group
  249. account:
  250. type: entity:user
  251. # Update/edit node form
  252. opigno_group_manager.manager.get_item_form:
  253. path: '/group/{group}/item-form/{type}/{item}'
  254. defaults:
  255. _controller: '\Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::getItemForm'
  256. item: null
  257. requirements:
  258. _entity_access: 'group.update'
  259. options:
  260. parameters:
  261. group:
  262. type: entity:group
  263. type:
  264. type: string
  265. # Info card
  266. opigno_group_manager.manager.hide_info_card:
  267. path: '/opigno-group-manager/hide-info-card'
  268. defaults:
  269. _controller: '\Drupal\opigno_group_manager\Controller\InfoCardController::hideInfoCard'
  270. requirements:
  271. # Accessible for all.
  272. _access: 'TRUE'
  273. _permission: 'access content'