forked from ec-europa/rdf_entity
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rdf_entity.routing.yml
executable file
·150 lines (133 loc) · 4.6 KB
/
rdf_entity.routing.yml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# This file brings everything together. Very nifty!
# Route name can be used in several place (links, redirects, local actions etc.)
entity.rdf_entity.canonical:
path: '/rdf_entity/{rdf_entity}'
defaults:
# Calls the view controller, defined in the annotation of the rdf entity.
_entity_view: 'rdf_entity'
_title_callback: '\Drupal\rdf_entity\Controller\RdfController::rdfTitle'
requirements:
# Calls the access controller of the entity, $operation 'view'.
_entity_access: 'rdf_entity.view'
entity.rdf_entity.collection:
path: 'admin/content/rdf'
defaults:
# Calls the list controller, defined in the annotation of the rdf entity.
_entity_list: 'rdf_entity'
_title: 'RDF'
requirements:
# Checks for permission directly.
_permission: 'view rdf entity overview'
rdf_entity.rdf_add_page:
path: '/rdf_entity/add'
defaults:
# Calls the form.add controller, defined in the rdf entity.
# _entity_form: rdf_entity.add
_title: 'Add RDF'
_controller: '\Drupal\rdf_entity\Controller\RdfController::addPage'
requirements:
_entity_create_access: 'rdf_entity'
rdf_entity.rdf_add:
path: '/rdf_entity/add/{rdf_type}'
defaults:
# Calls the form.add controller, defined in the rdf entity.
# _entity_form: rdf_entity.add
_title: 'Add RDF'
_controller: '\Drupal\rdf_entity\Controller\RdfController::add'
requirements:
_entity_create_access: 'rdf_entity:{rdf_type}'
entity.rdf_entity.edit_form:
path: '/rdf_entity/{rdf_entity}/edit'
defaults:
# Calls the form.edit controller, defined in the rdf entity.
_entity_form: rdf_entity.edit
_title: 'Edit Rdf'
requirements:
_entity_access: 'rdf_entity.edit'
entity.rdf_entity.delete_form:
path: '/rdf_entity/{rdf_entity}/delete'
defaults:
# Calls the form.delete controller, defined in the rdf entity.
_entity_form: rdf_entity.delete
_title: 'Delete Rdf'
requirements:
_entity_access: 'rdf_entity.delete'
entity.rdf_type.collection:
path: '/admin/structure/rdf_type'
defaults:
_entity_list: 'rdf_type'
_title: 'Rdf type'
requirements:
_permission: 'administer rdf entity'
entity.rdf_type.add_form:
path: '/admin/structure/rdf_type/add'
defaults:
_entity_form: 'rdf_type'
_title: 'Add Rdf type'
requirements:
_entity_create_access: 'rdf_type'
entity.rdf_type.edit_form:
path: '/admin/structure/rdf_type/manage/{rdf_type}'
defaults:
_entity_form: 'rdf_type.default'
_title_callback: '\Drupal\rdf_entity\Controller\RdfController::rdfTypeTitle'
requirements:
_entity_access: 'rdf_type.update'
entity.rdf_type.delete_form:
path: '/admin/structure/rdf_type/manage/{rdf_type}/delete'
defaults:
_entity_form: 'rdf_type.delete'
_title: 'Delete Rdf type'
requirements:
_entity_access: 'rdf_type.delete'
rdf_entity.admin_index:
path: '/admin/config/rdf_entity'
defaults:
_controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
_title: 'Rdf entity'
requirements:
_permission: 'administer rdf entity'
entity.rdf_entity_graph.collection:
path: '/admin/config/rdf_entity/graph'
defaults:
_entity_list: 'rdf_entity_graph'
_title: 'RDF Graphs'
requirements:
_permission: 'administer rdf entity'
rdf_entity_graph.add:
path: '/admin/config/rdf_entity/graph/add'
defaults:
_entity_form: 'rdf_entity_graph.add'
_title: 'Add graph'
requirements:
_entity_create_access: rdf_entity_graph
entity.rdf_entity_graph.edit_form:
path: '/admin/config/rdf_entity/graph/manage/{rdf_entity_graph}'
defaults:
_entity_form: 'rdf_entity_graph.edit'
_title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
requirements:
_entity_access: rdf_entity_graph.update
entity.rdf_entity_graph.delete_form:
path: '/admin/config/rdf_entity/graph/manage/{rdf_entity_graph}/delete'
defaults:
_entity_form: 'rdf_entity_graph.delete'
_title: 'Delete'
requirements:
_entity_access: rdf_entity_graph.delete
entity.rdf_entity_graph.enable:
path: '/admin/config/rdf_entity/graph/manage/{rdf_entity_graph}/enable'
defaults:
_controller: 'Drupal\rdf_entity\Controller\RdfEntityGraphToggle::toggle'
_title: Enable
toggle_operation: enable
requirements:
_custom_access: 'Drupal\rdf_entity\Controller\RdfEntityGraphToggle::access'
entity.rdf_entity_graph.disable:
path: '/admin/config/rdf_entity/graph/manage/{rdf_entity_graph}/disable'
defaults:
_controller: 'Drupal\rdf_entity\Controller\RdfEntityGraphToggle::toggle'
_title: Disable
toggle_operation: disable
requirements:
_custom_access: 'Drupal\rdf_entity\Controller\RdfEntityGraphToggle::access'