You are here

business_rules.routing.yml in Business Rules 8

Same filename and directory in other branches
  1. 2.x business_rules.routing.yml

File

business_rules.routing.yml
View source
  1. # Settings
  2. business_rules.settings:
  3. path: '/admin/config/workflow/business_rules/settings'
  4. defaults:
  5. _form: '\Drupal\business_rules\Form\BusinessRulesSettingsForm'
  6. _title: 'Business rules Settings'
  7. requirements:
  8. _permission: 'administer site configuration'
  9. # Disable business rule
  10. entity.business_rule.disable:
  11. path: '/admin/config/workflow/business_rule/{business_rule}/disable'
  12. defaults:
  13. _controller: '\Drupal\business_rules\Controller\BusinessRuleController::disable'
  14. entity_type: 'business_rule'
  15. requirements:
  16. _permission: 'administer site configuration'
  17. # Enable business rule
  18. entity.business_rule.enable:
  19. path: '/admin/config/workflow/business_rule/{business_rule}/enable'
  20. defaults:
  21. _controller: '\Drupal\business_rules\Controller\BusinessRuleController::enable'
  22. entity_type: 'business_rule'
  23. requirements:
  24. _permission: 'administer site configuration'
  25. # Show table which the available conditions for condition_set
  26. business_rules.condition_set.items.table:
  27. path: '/admin/config/workflow/business_rule/condition/{condition_id}/items/{method}/condition_set/table'
  28. defaults:
  29. _controller: '\Drupal\business_rules\Controller\ConditionSetController::itemsTable'
  30. requirements:
  31. _permission: 'administer site configuration'
  32. method: 'nojs|ajax'
  33. item_type: 'action|condition'
  34. # Add item on condition_set Condition
  35. business_rules.condition_set.items.add:
  36. path: '/admin/config/workflow/business_rule/condition/{condition_id}/items/{item_id}/condition_set/add'
  37. defaults:
  38. _controller: '\Drupal\business_rules\Controller\ConditionSetController::addItem'
  39. requirements:
  40. _permission: 'administer site configuration'
  41. item_type: 'action|condition'
  42. # Remove item from condition_set Condition
  43. business_rules.condition_set.items.remove:
  44. path: '/admin/config/workflow/business_rule/condition/{condition_id}/items/{item_id}/condition_set/remove/{method}'
  45. defaults:
  46. _controller: '\Drupal\business_rules\Controller\ConditionSetController::removeItem'
  47. requirements:
  48. _permission: 'administer site configuration'
  49. item_type: 'action|condition'
  50. condition_item_type: 'success|fail'
  51. method: 'nojs|ajax'
  52. # Show table which the available actions for action_set
  53. business_rules.action_set.items.table:
  54. path: '/admin/config/workflow/business_rule/action/{action_id}/items/{method}/action_set/table'
  55. defaults:
  56. _controller: '\Drupal\business_rules\Controller\ActionSetController::itemsTable'
  57. requirements:
  58. _permission: 'administer site configuration'
  59. method: 'nojs|ajax'
  60. item_type: 'action|condition'
  61. # Add item on action_set Action
  62. business_rules.action_set.items.add:
  63. path: '/admin/config/workflow/business_rule/action/{action_id}/items/{item_id}/action_set/add'
  64. defaults:
  65. _controller: '\Drupal\business_rules\Controller\ActionSetController::addItem'
  66. requirements:
  67. _permission: 'administer site configuration'
  68. item_type: 'action|condition'
  69. # Remove item from action_set
  70. business_rules.action_set.items.remove:
  71. path: '/admin/config/workflow/business_rule/action/{action_id}/items/{item_id}/action_set/remove/{method}'
  72. defaults:
  73. _controller: '\Drupal\business_rules\Controller\ActionSetController::removeItem'
  74. requirements:
  75. _permission: 'administer site configuration'
  76. item_type: 'action|condition'
  77. condition_item_type: 'success|fail'
  78. method: 'nojs|ajax'
  79. # Show table which the available actions for action_set
  80. business_rules.schedule_task.items.table:
  81. path: '/admin/config/workflow/business_rule/action/{action_id}/items/{method}/schedule_task/{item_type}/table'
  82. defaults:
  83. _controller: '\Drupal\business_rules\Controller\ScheduleTaskController::itemsTable'
  84. requirements:
  85. _permission: 'administer site configuration'
  86. method: 'nojs|ajax'
  87. item_type: 'action|condition'
  88. # Add item on action_set Action
  89. business_rules.schedule_task.items.add:
  90. path: '/admin/config/workflow/business_rule/action/{action_id}/items/{item_id}/schedule_task/{item_type}/add'
  91. defaults:
  92. _controller: '\Drupal\business_rules\Controller\ScheduleTaskController::addItem'
  93. requirements:
  94. _permission: 'administer site configuration'
  95. item_type: 'action|condition'
  96. # Remove item from action_set
  97. business_rules.schedule_task.items.remove:
  98. path: '/admin/config/workflow/business_rule/action/{action_id}/items/{item_id}/schedule_task/remove/{method}'
  99. defaults:
  100. _controller: '\Drupal\business_rules\Controller\ScheduleTaskController::removeItem'
  101. requirements:
  102. _permission: 'administer site configuration'
  103. item_type: 'action|condition'
  104. condition_item_type: 'success|fail'
  105. method: 'nojs|ajax'
  106. # Modal for help content.
  107. business_rules.ajax.modal:
  108. path: 'admin/config/workflow/business_rules/modal/{title}/{collection}/{key}/{method}'
  109. defaults:
  110. _controller: '\Drupal\business_rules\Controller\ModalController::modal'
  111. requirements:
  112. _permission: 'administer site configuration'
  113. method: 'nojs|ajax'
  114. # Show table which the available items
  115. business_rules.items.table:
  116. path: '/admin/config/workflow/business_rule/{business_rule}/items/{item_type}/{method}/table'
  117. defaults:
  118. _controller: '\Drupal\business_rules\Controller\BusinessRulesItemsController::itemsTable'
  119. requirements:
  120. _permission: 'administer site configuration'
  121. method: 'nojs|ajax'
  122. item_type: 'action|condition'
  123. # Add item on rule
  124. business_rules.items.add:
  125. path: '/admin/config/workflow/business_rule/{business_rule}/items/{item_type}/{item_id}/add'
  126. defaults:
  127. _controller: '\Drupal\business_rules\Controller\BusinessRulesItemsController::addItem'
  128. requirements:
  129. _permission: 'administer site configuration'
  130. item_type: 'action|condition'
  131. # Remove item from rule
  132. business_rules.items.remove:
  133. path: 'admin/config/workflow/business_rule/{business_rule}/items/{item_type}/{item_id}/remove/{method}'
  134. defaults:
  135. _controller: '\Drupal\business_rules\Controller\BusinessRulesItemsController::removeItem'
  136. requirements:
  137. _permission: 'administer site configuration'
  138. item_type: 'action|condition'
  139. method: 'nojs|ajax'
  140. # Show table which the available items
  141. business_rules.condition.items.table:
  142. path: '/admin/config/workflow/business_rule/condition/{condition_id}/items/{condition_item_type}/{item_type}/{method}/table'
  143. defaults:
  144. _controller: '\Drupal\business_rules\Controller\ConditionsItemsController::itemsTable'
  145. requirements:
  146. _permission: 'administer site configuration'
  147. condition_item_type: 'success|fail'
  148. method: 'nojs|ajax'
  149. item_type: 'action|condition'
  150. # Add item on condition
  151. business_rules.condition.items.add:
  152. path: '/admin/config/workflow/business_rule/condition/{condition_id}/items/{condition_item_type}/{item_type}/{item_id}/add'
  153. defaults:
  154. _controller: '\Drupal\business_rules\Controller\ConditionsItemsController::addItem'
  155. requirements:
  156. _permission: 'administer site configuration'
  157. item_type: 'action|condition'
  158. condition_item_type: 'success|fail'
  159. # Remove item from condition
  160. business_rules.condition.items.remove:
  161. path: '/admin/config/workflow/business_rule/condition/{condition_id}/items/{condition_item_type}/{item_type}/{item_id}/remove/{method}'
  162. defaults:
  163. _controller: '\Drupal\business_rules\Controller\ConditionsItemsController::removeItem'
  164. requirements:
  165. _permission: 'administer site configuration'
  166. item_type: 'action|condition'
  167. condition_item_type: 'success|fail'
  168. method: 'nojs|ajax'
  169. # Show table which the available items for loop_through_view_result
  170. business_rules.loop_through_view_result.items.table:
  171. path: '/admin/config/workflow/business_rule/action/{action_id}/items/{item_type}/{method}/loop_through_view_result/table'
  172. defaults:
  173. _controller: '\Drupal\business_rules\Controller\LoopThroughViewResultController::itemsTable'
  174. requirements:
  175. _permission: 'administer site configuration'
  176. method: 'nojs|ajax'
  177. item_type: 'action|condition'
  178. # Add item on loop_through_view_result Action
  179. business_rules.loop_through_view_result.items.add:
  180. path: '/admin/config/workflow/business_rule/action/{action_id}/items/{item_type}/{item_id}/loop_through_view_result/add'
  181. defaults:
  182. _controller: '\Drupal\business_rules\Controller\LoopThroughViewResultController::addItem'
  183. requirements:
  184. _permission: 'administer site configuration'
  185. item_type: 'action|condition'
  186. # Remove item from loop_through_view_result
  187. business_rules.loop_through_view_result.items.remove:
  188. path: '/admin/config/workflow/business_rule/action/{action_id}/items/{item_type}/{item_id}/remove/{method}/loop_through_view_result'
  189. defaults:
  190. _controller: '\Drupal\business_rules\Controller\LoopThroughViewResultController::removeItem'
  191. requirements:
  192. _permission: 'administer site configuration'
  193. item_type: 'action|condition'
  194. condition_item_type: 'success|fail'
  195. method: 'nojs|ajax'
  196. # Remove field and value from fill_entity_variable_fields plugin action
  197. business_rules.plugins.action.fill_entity_variable_fields.remove_field:
  198. path: '/admin/config/workflow/business_rule/action/{action}/fill_entity_variable_fields/{field}/{method}'
  199. defaults:
  200. _controller: '\Drupal\business_rules\Plugin\BusinessRulesAction\FillEntityVariableFields::removeFieldValue'
  201. requirements:
  202. _permission: 'administer site configuration'
  203. method: 'nojs|ajax'
  204. business_rules.autocomplete_tags:
  205. path: '/admin/config/workflow/business_rule/tags/auto-complete'
  206. defaults:
  207. _controller: '\Drupal\business_rules\Controller\AutocompleteTags::handleAutocomplete'
  208. _format: json
  209. requirements:
  210. _permission: 'administer site configuration'
  211. business_rules.plugins.action.change_field_info.remove_field:
  212. path: '/admin/config/workflow/business_rule/action/{action}/change_field_info/{field}/{method}'
  213. defaults:
  214. _controller: '\Drupal\business_rules\Plugin\BusinessRulesAction\ChangeFieldInfo::removeField'
  215. requirements:
  216. _permission: 'administer site configuration'
  217. method: 'nojs|ajax'
  218. business_rules.plugins.action.change_field_info.info_form:
  219. path: '/admin/config/workflow/business_rule/action/{action}/change_field_info/add_info/{field}'
  220. defaults:
  221. _form: '\Drupal\business_rules\Form\ChangeFieldInfoForm'
  222. requirements:
  223. _permission: 'administer site configuration'
  224. method: 'nojs|ajax'
  225. entity.business_rules_schedule.canonical:
  226. path: '/admin/config/workflow/business_rules/schedule/{business_rules_schedule}'
  227. defaults:
  228. _controller: '\Drupal\business_rules\Controller\ScheduleController::view'
  229. requirements:
  230. _permission: 'view schedule entities'
  231. entity.business_rules_schedule.execute:
  232. path: '/admin/config/workflow/business_rules/schedule/execute/{business_rules_schedule}'
  233. defaults:
  234. _controller: '\Drupal\business_rules\Controller\ScheduleController::execute'
  235. requirements:
  236. _permission: 'execute schedule entities'