workflow.routing.yml
1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# All routes for Workflow maintenance are declared in Workflow UI.
### Workflow Transition CRUD
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'
### 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'
options:
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'
options:
parameters:
entity:
type: entity:{entity_type}