123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- # All other routes for Workflow maintenance are declared in Workflow UI.
- ### Workflow CRUD
- entity.workflow_type.collection:
- path: '/admin/config/workflow/workflow'
- defaults:
- _entity_list: 'workflow_type'
- # _controller: '\workflow\EntityWorkflowUIController::adminOverview'
- _title: 'Workflows'
- requirements:
- _permission: 'administer workflow'
- entity.workflow_type.canonical:
- path: '/admin/config/workflow/workflow/{workflow_type}'
- defaults:
- _entity_form: 'workflow_type.edit'
- _title: 'Edit Workflow'
- _title_callback: 'workflow_url_get_title'
- requirements:
- _permission: 'administer workflow'
- # _entity_access: 'workflow.update'
- entity.workflow_type.add_form:
- path: '/admin/config/workflow/workflow/add'
- defaults:
- _entity_form: 'workflow_type.add'
- _title: 'Add Workflow'
- requirements:
- _permission: 'administer workflow'
- # _entity_access: 'workflow.update'
- entity.workflow_type.edit_form:
- path: '/admin/config/workflow/workflow/{workflow_type}'
- defaults:
- _entity_form: 'workflow_type.edit'
- _title: 'Edit Workflow'
- _title_callback: 'workflow_url_get_title'
- requirements:
- _permission: 'administer workflow'
- # _entity_access: 'workflow.update'
- entity.workflow_type.delete_form:
- path: '/admin/config/workflow/workflow/{workflow_type}/delete'
- defaults:
- _entity_form: 'workflow_type.delete'
- _title: 'Delete Workflow'
- requirements:
- _permission: 'administer workflow'
- # _entity_access: 'workflow.update'
- ### Workflow Executed Transition CRUD
- entity.workflow_transition.canonical:
- path: '/workflow_transition/{workflow_transition}'
- defaults:
- # Calls the view controller, defined in the annotation of the contact entity
- # _entity_view: 'workflow_transition'
- _title: 'Workflow transition'
- #requirements:
- # Calls the access controller of the entity, $operation 'view'
- # _entity_access: 'workflow_transition.view'
- entity.workflow_transition.edit_form:
- path: '/workflow_transition/{workflow_transition}/edit'
- defaults:
- _entity_form: 'workflow_transition.edit'
- _title: 'Edit Workflow transition'
- options:
- _admin_route: TRUE
- requirements:
- _entity_access: 'workflow_transition.update'
- entity.workflow_transition.delete_form:
- path: '/workflow_transition/{workflow_transition}/delete'
- defaults:
- _entity_form: 'workflow_transition.delete'
- _title: 'Delete Workflow transition'
- options:
- _admin_route: TRUE
- requirements:
- _entity_access: 'workflow_transition.delete'
- ### Workflow Scheduled Transition CRUD
- entity.workflow_scheduled_transition.canonical:
- path: '/workflow_transition/{workflow_transition}'
- defaults:
- # Calls the view controller, defined in the annotation of the contact entity
- # _entity_view: 'workflow_transition'
- _title: 'Workflow transition'
- #requirements:
- # Calls the access controller of the entity, $operation 'view'
- # _entity_access: 'workflow_transition.view'
- entity.workflow_scheduled_transition.edit_form:
- path: '/workflow_transition/{workflow_transition}/edit'
- defaults:
- _entity_form: 'workflow_transition.edit'
- _title: 'Edit Workflow transition'
- options:
- _admin_route: TRUE
- requirements:
- _entity_access: 'workflow_transition.update'
- entity.workflow_scheduled_transition.delete_form:
- path: '/workflow_transition/{workflow_transition}/delete'
- defaults:
- _entity_form: 'workflow_transition.delete'
- _title: 'Delete Workflow transition'
- options:
- _admin_route: TRUE
- requirements:
- _entity_access: 'workflow_transition.delete'
- ### The Workflow Transition History List (Tab)
- # @todo D8-port: make Workflow History tab happen for every entity_type.
- # @see workflow.routing.yml, workflow.links.task.yml, WorkflowTransitionListController.
- # A route for showing the Workflow history tab.
- entity.node.workflow_history:
- path: '/node/{node}/workflow/{field_name}'
- defaults:
- _title: 'Workflow history'
- _controller: '\Drupal\workflow\Controller\WorkflowTransitionListController::historyOverview'
- field_name: ~
- requirements:
- _custom_access: '\Drupal\workflow\Controller\WorkflowTransitionListController::historyAccess'
- _module_dependencies: 'node'
- options:
- _admin_route: TRUE
- parameters:
- entity:
- type: entity:{entity_type}
- entity.taxonomy_term.workflow_history:
- path: '/taxonomy/term/{taxonomy_term}/workflow/{field_name}'
- defaults:
- _title: 'Workflow history'
- _controller: '\Drupal\workflow\Controller\WorkflowTransitionListController::historyOverview'
- field_name: ~
- requirements:
- _custom_access: '\Drupal\workflow\Controller\WorkflowTransitionListController::historyAccess'
- _module_dependencies: 'taxonomy'
- options:
- parameters:
- entity:
- type: entity:{entity_type}
|