You are here

workflow.routing.yml in Workflow 8

File

workflow.routing.yml
View source
  1. # All other routes for Workflow maintenance are declared in Workflow UI.
  2. ### Workflow Collections
  3. entity.workflow_type.collection:
  4. path: '/admin/config/workflow/workflow'
  5. defaults:
  6. _entity_list: 'workflow_type'
  7. # _controller: '\workflow\EntityWorkflowUIController::adminOverview'
  8. _title: 'Workflows'
  9. requirements:
  10. _permission: 'administer workflow'
  11. entity.workflow_state.collection:
  12. path: '/admin/config/workflow/workflow/{workflow_type}/states'
  13. defaults:
  14. _entity_list: 'workflow_state'
  15. _title: 'Edit Workflow'
  16. _title_callback: 'workflow_url_get_title'
  17. requirements:
  18. _permission: 'administer workflow'
  19. options:
  20. parameters:
  21. workflow_type:
  22. type: entity:workflow_type
  23. entity.workflow_transition.collection:
  24. path: '/admin/config/workflow/workflow/{workflow_type}/transition_roles'
  25. defaults:
  26. _form: 'Drupal\workflow\Form\WorkflowConfigTransitionRoleForm'
  27. _title: 'Edit Workflow'
  28. _title_callback: 'workflow_url_get_title'
  29. requirements:
  30. _permission: 'administer workflow'
  31. options:
  32. parameters:
  33. workflow_type:
  34. type: entity:workflow_type
  35. entity.workflow_transition_label.collection:
  36. path: '/admin/config/workflow/workflow/{workflow_type}/transition_labels'
  37. defaults:
  38. _form: 'Drupal\workflow\Form\WorkflowConfigTransitionLabelForm'
  39. _title: 'Edit Workflow'
  40. _title_callback: 'workflow_url_get_title'
  41. requirements:
  42. _permission: 'administer workflow'
  43. options:
  44. parameters:
  45. workflow_type:
  46. type: entity:workflow_type
  47. ### Workflow CRUD
  48. entity.workflow_type.canonical:
  49. path: '/admin/config/workflow/workflow/{workflow_type}'
  50. defaults:
  51. _entity_form: 'workflow_type.edit'
  52. _title: 'Edit Workflow'
  53. _title_callback: 'workflow_url_get_title'
  54. requirements:
  55. _permission: 'administer workflow'
  56. # _entity_access: 'workflow.update'
  57. entity.workflow_type.add_form:
  58. path: '/admin/config/workflow/workflow/add'
  59. defaults:
  60. _entity_form: 'workflow_type.add'
  61. _title: 'Add Workflow'
  62. requirements:
  63. _permission: 'administer workflow'
  64. # _entity_access: 'workflow.update'
  65. entity.workflow_type.edit_form:
  66. path: '/admin/config/workflow/workflow/{workflow_type}'
  67. defaults:
  68. _entity_form: 'workflow_type.edit'
  69. _title: 'Edit Workflow'
  70. _title_callback: 'workflow_url_get_title'
  71. requirements:
  72. _permission: 'administer workflow'
  73. # _entity_access: 'workflow.update'
  74. entity.workflow_type.delete_form:
  75. path: '/admin/config/workflow/workflow/{workflow_type}/delete'
  76. defaults:
  77. _entity_form: 'workflow_type.delete'
  78. _title: 'Delete Workflow'
  79. requirements:
  80. _permission: 'administer workflow'
  81. # _entity_access: 'workflow.update'
  82. ### Workflow Executed Transition CRUD
  83. entity.workflow_transition.canonical:
  84. path: '/workflow_transition/{workflow_transition}'
  85. defaults:
  86. # Calls the view controller, defined in the annotation of the contact entity
  87. # _entity_view: 'workflow_transition'
  88. _title: 'Workflow transition'
  89. #requirements:
  90. # Calls the access controller of the entity, $operation 'view'
  91. # _entity_access: 'workflow_transition.view'
  92. entity.workflow_transition.edit_form:
  93. path: '/workflow_transition/{workflow_transition}/edit'
  94. defaults:
  95. _entity_form: 'workflow_transition.edit'
  96. _title: 'Edit Workflow transition'
  97. options:
  98. _admin_route: TRUE
  99. requirements:
  100. _entity_access: 'workflow_transition.update'
  101. entity.workflow_transition.delete_form:
  102. path: '/workflow_transition/{workflow_transition}/delete'
  103. defaults:
  104. _entity_form: 'workflow_transition.delete'
  105. _title: 'Delete Workflow transition'
  106. options:
  107. _admin_route: TRUE
  108. requirements:
  109. _entity_access: 'workflow_transition.delete'
  110. entity.workflow_transition.revert_form:
  111. path: '/workflow_transition/{workflow_transition}/revert'
  112. defaults:
  113. _entity_form: 'workflow_transition.revert'
  114. _title: 'Revert Workflow transition'
  115. requirements:
  116. _entity_access: 'workflow_transition.revert'
  117. # _access: 'true'
  118. ### Workflow Scheduled Transition CRUD
  119. entity.workflow_scheduled_transition.canonical:
  120. path: '/workflow_transition/{workflow_transition}'
  121. defaults:
  122. # Calls the view controller, defined in the annotation of the contact entity
  123. # _entity_view: 'workflow_transition'
  124. _title: 'Workflow transition'
  125. #requirements:
  126. # Calls the access controller of the entity, $operation 'view'
  127. # _entity_access: 'workflow_transition.view'
  128. entity.workflow_scheduled_transition.edit_form:
  129. path: '/workflow_transition/{workflow_transition}/edit'
  130. defaults:
  131. _entity_form: 'workflow_transition.edit'
  132. _title: 'Edit Workflow transition'
  133. options:
  134. _admin_route: TRUE
  135. requirements:
  136. _entity_access: 'workflow_transition.update'
  137. entity.workflow_scheduled_transition.delete_form:
  138. path: '/workflow_transition/{workflow_transition}/delete'
  139. defaults:
  140. _entity_form: 'workflow_transition.delete'
  141. _title: 'Delete Workflow transition'
  142. options:
  143. _admin_route: TRUE
  144. requirements:
  145. _entity_access: 'workflow_transition.delete'