workflow.routing.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # All other routes for Workflow maintenance are declared in Workflow UI.
  2. ### Workflow CRUD
  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_type.canonical:
  12. path: '/admin/config/workflow/workflow/{workflow_type}'
  13. defaults:
  14. _entity_form: 'workflow_type.edit'
  15. _title: 'Edit Workflow'
  16. _title_callback: 'workflow_url_get_title'
  17. requirements:
  18. _permission: 'administer workflow'
  19. # _entity_access: 'workflow.update'
  20. entity.workflow_type.add_form:
  21. path: '/admin/config/workflow/workflow/add'
  22. defaults:
  23. _entity_form: 'workflow_type.add'
  24. _title: 'Add Workflow'
  25. requirements:
  26. _permission: 'administer workflow'
  27. # _entity_access: 'workflow.update'
  28. entity.workflow_type.edit_form:
  29. path: '/admin/config/workflow/workflow/{workflow_type}'
  30. defaults:
  31. _entity_form: 'workflow_type.edit'
  32. _title: 'Edit Workflow'
  33. _title_callback: 'workflow_url_get_title'
  34. requirements:
  35. _permission: 'administer workflow'
  36. # _entity_access: 'workflow.update'
  37. entity.workflow_type.delete_form:
  38. path: '/admin/config/workflow/workflow/{workflow_type}/delete'
  39. defaults:
  40. _entity_form: 'workflow_type.delete'
  41. _title: 'Delete Workflow'
  42. requirements:
  43. _permission: 'administer workflow'
  44. # _entity_access: 'workflow.update'
  45. ### Workflow Executed Transition CRUD
  46. entity.workflow_transition.canonical:
  47. path: '/workflow_transition/{workflow_transition}'
  48. defaults:
  49. # Calls the view controller, defined in the annotation of the contact entity
  50. # _entity_view: 'workflow_transition'
  51. _title: 'Workflow transition'
  52. #requirements:
  53. # Calls the access controller of the entity, $operation 'view'
  54. # _entity_access: 'workflow_transition.view'
  55. entity.workflow_transition.edit_form:
  56. path: '/workflow_transition/{workflow_transition}/edit'
  57. defaults:
  58. _entity_form: 'workflow_transition.edit'
  59. _title: 'Edit Workflow transition'
  60. options:
  61. _admin_route: TRUE
  62. requirements:
  63. _entity_access: 'workflow_transition.update'
  64. entity.workflow_transition.delete_form:
  65. path: '/workflow_transition/{workflow_transition}/delete'
  66. defaults:
  67. _entity_form: 'workflow_transition.delete'
  68. _title: 'Delete Workflow transition'
  69. options:
  70. _admin_route: TRUE
  71. requirements:
  72. _entity_access: 'workflow_transition.delete'
  73. ### Workflow Scheduled Transition CRUD
  74. entity.workflow_scheduled_transition.canonical:
  75. path: '/workflow_transition/{workflow_transition}'
  76. defaults:
  77. # Calls the view controller, defined in the annotation of the contact entity
  78. # _entity_view: 'workflow_transition'
  79. _title: 'Workflow transition'
  80. #requirements:
  81. # Calls the access controller of the entity, $operation 'view'
  82. # _entity_access: 'workflow_transition.view'
  83. entity.workflow_scheduled_transition.edit_form:
  84. path: '/workflow_transition/{workflow_transition}/edit'
  85. defaults:
  86. _entity_form: 'workflow_transition.edit'
  87. _title: 'Edit Workflow transition'
  88. options:
  89. _admin_route: TRUE
  90. requirements:
  91. _entity_access: 'workflow_transition.update'
  92. entity.workflow_scheduled_transition.delete_form:
  93. path: '/workflow_transition/{workflow_transition}/delete'
  94. defaults:
  95. _entity_form: 'workflow_transition.delete'
  96. _title: 'Delete Workflow transition'
  97. options:
  98. _admin_route: TRUE
  99. requirements:
  100. _entity_access: 'workflow_transition.delete'