views_ui.routing.yml 6.8 KB
Newer Older
1
entity.view.collection:
2
  path: '/admin/structure/views'
3
  defaults:
4
    _entity_list: 'view'
5
    _title: 'Views'
6 7 8 9
  requirements:
    _permission: 'administer views'

views_ui.add:
10
  path: '/admin/structure/views/add'
11
  defaults:
12
    _entity_form: 'view.add'
13
    _title: 'Add view'
14
  requirements:
15
    _entity_create_access: view
16

17
views_ui.settings_basic:
18
  path: '/admin/structure/views/settings'
19
  defaults:
20
    _form: '\Drupal\views_ui\Form\BasicSettingsForm'
21
    _title: 'Views settings'
22 23 24
  requirements:
    _permission: 'administer views'

25
views_ui.settings_advanced:
26
  path: '/admin/structure/views/settings/advanced'
27
  defaults:
28
    _form: '\Drupal\views_ui\Form\AdvancedSettingsForm'
29
    _title: 'Advanced Views settings'
30 31 32
  requirements:
    _permission: 'administer views'

33
views_ui.reports_fields:
34
  path: '/admin/reports/fields/views-fields'
35
  defaults:
36
    _controller: '\Drupal\views_ui\Controller\ViewsUIController::reportFields'
37
    _title: 'Used in views'
38 39 40
  requirements:
    _permission: 'administer views'

41
views_ui.reports_plugins:
42
  path: '/admin/reports/views-plugins'
43
  defaults:
44
    _controller: '\Drupal\views_ui\Controller\ViewsUIController::reportPlugins'
45
    _title: 'Views plugins'
46 47 48
  requirements:
    _permission: 'administer views'

49
entity.view.enable:
50
  path: '/admin/structure/views/view/{view}/enable'
51
  defaults:
52
    _controller: '\Drupal\views_ui\Controller\ViewsUIController::ajaxOperation'
53 54
    op: enable
  requirements:
55
    _entity_access: view.enable
56 57
    _csrf_token: 'TRUE'

58
entity.view.disable:
59 60 61 62
  path: '/admin/structure/views/view/{view}/disable'
  defaults:
    _controller: '\Drupal\views_ui\Controller\ViewsUIController::ajaxOperation'
    op: disable
63
  requirements:
64
    _entity_access: view.disable
65
    _csrf_token: 'TRUE'
66

67
entity.view.duplicate_form:
68
  path: '/admin/structure/views/view/{view}/duplicate'
69
  defaults:
70 71
    _entity_form: 'view.duplicate'
    _title: 'Duplicate view'
72
  requirements:
73
    _entity_access: view.duplicate
74

75
entity.view.delete_form:
76
  path: '/admin/structure/views/view/{view}/delete'
77
  defaults:
78
    _entity_form: 'view.delete'
79
    _title: 'Delete view'
80
  requirements:
81
    _entity_access: view.delete
82 83

views_ui.autocomplete:
84
  path: '/admin/views/ajax/autocomplete/tag'
85
  defaults:
86
    _controller: '\Drupal\views_ui\Controller\ViewsUIController::autocompleteTag'
87 88 89
  requirements:
    _permission: 'administer views'

90
entity.view.edit_form:
91
  path: '/admin/structure/views/view/{view}'
92
  options:
93 94 95
    parameters:
      view:
        tempstore: TRUE
96
        type: entity:view
97
  defaults:
98
    _controller: '\Drupal\views_ui\Controller\ViewsUIController::edit'
99
  requirements:
100
    _entity_access: view.update
101

102
entity.view.edit_display_form:
103
  path: '/admin/structure/views/view/{view}/edit/{display_id}'
104
  options:
105 106 107
    parameters:
      view:
        tempstore: TRUE
108
        type: entity:view
109
  defaults:
110
    _controller: '\Drupal\views_ui\Controller\ViewsUIController::edit'
111 112
    display_id: NULL
  requirements:
113
    _entity_access: view.update
114

115
entity.view.preview_form:
116
  path: '/admin/structure/views/view/{view}/preview/{display_id}'
117
  options:
118 119 120
    parameters:
      view:
        tempstore: TRUE
121
        type: entity:view
122
  defaults:
123
    _entity_form: 'view.preview'
124 125 126 127
    display_id: NULL
  requirements:
    _permission: 'administer views'

128
entity.view.break_lock_form:
129
  path: '/admin/structure/views/view/{view}/break-lock'
130
  defaults:
131
    _entity_form: 'view.break_lock'
132
    _title: 'Break lock'
133
  requirements:
134
    _entity_access: view.break-lock
135

136 137
views_ui.form_add_handler:
  path: '/admin/structure/views/{js}/add-handler/{view}/{display_id}/{type}'
138
  options:
139 140 141
    parameters:
      view:
        tempstore: TRUE
142
        type: entity:view
143
  defaults:
144
    _controller: '\Drupal\views_ui\Form\Ajax\AddHandler::getForm'
145
  requirements:
146
    _entity_access: view.update
147 148
    js: 'nojs|ajax'

149
views_ui.form_edit_details:
150
  path: '/admin/structure/views/{js}/edit-details/{view}/{display_id}'
151
  options:
152 153 154
    parameters:
      view:
        tempstore: TRUE
155
        type: entity:view
156
  defaults:
157
    _controller: '\Drupal\views_ui\Form\Ajax\EditDetails::getForm'
158
  requirements:
159
    _entity_access: view.update
160 161
    js: 'nojs|ajax'

162
views_ui.form_reorder_displays:
163
  path: '/admin/structure/views/{js}/reorder-displays/{view}/{display_id}'
164
  options:
165 166 167
    parameters:
      view:
        tempstore: TRUE
168
        type: entity:view
169
  defaults:
170
    _controller: '\Drupal\views_ui\Form\Ajax\ReorderDisplays::getForm'
171
  requirements:
172
    _entity_access: view.update
173 174
    js: 'nojs|ajax'

175
views_ui.form_analyze:
176
  path: '/admin/structure/views/{js}/analyze/{view}/{display_id}'
177
  options:
178 179 180
    parameters:
      view:
        tempstore: TRUE
181
        type: entity:view
182
  defaults:
183
    _controller: '\Drupal\views_ui\Form\Ajax\Analyze::getForm'
184
  requirements:
185
    _entity_access: view.update
186 187
    js: 'nojs|ajax'

188
views_ui.form_rearrange:
189
  path: '/admin/structure/views/{js}/rearrange/{view}/{display_id}/{type}'
190
  options:
191 192 193
    parameters:
      view:
        tempstore: TRUE
194
        type: entity:view
195
  defaults:
196
    _controller: '\Drupal\views_ui\Form\Ajax\Rearrange::getForm'
197
  requirements:
198
    _entity_access: view.update
199 200
    js: 'nojs|ajax'

201
views_ui.form_rearrange_filter:
202
  path: '/admin/structure/views/{js}/rearrange-filter/{view}/{display_id}'
203
  options:
204 205 206
    parameters:
      view:
        tempstore: TRUE
207
        type: entity:view
208
  defaults:
209
    _controller: '\Drupal\views_ui\Form\Ajax\RearrangeFilter::getForm'
210
  requirements:
211
    _entity_access: view.update
212 213
    js: 'nojs|ajax'

214
views_ui.form_display:
215
  path: '/admin/structure/views/{js}/display/{view}/{display_id}/{type}'
216
  options:
217 218 219
    parameters:
      view:
        tempstore: TRUE
220
        type: entity:view
221
  defaults:
222
    _controller: '\Drupal\views_ui\Form\Ajax\Display::getForm'
223
  requirements:
224
    _entity_access: view.update
225 226
    js: 'nojs|ajax'

227 228
views_ui.form_handler:
  path: '/admin/structure/views/{js}/handler/{view}/{display_id}/{type}/{id}'
229
  options:
230 231 232
    parameters:
      view:
        tempstore: TRUE
233
        type: entity:view
234
  defaults:
235
    _controller: '\Drupal\views_ui\Form\Ajax\ConfigHandler::getForm'
236
  requirements:
237
    _entity_access: view.update
238 239
    js: 'nojs|ajax'

240 241
views_ui.form_handler_extra:
  path: '/admin/structure/views/{js}/handler-extra/{view}/{display_id}/{type}/{id}'
242
  options:
243 244 245
    parameters:
      view:
        tempstore: TRUE
246
        type: entity:view
247
  defaults:
248
    _controller: '\Drupal\views_ui\Form\Ajax\ConfigHandlerExtra::getForm'
249
  requirements:
250
    _entity_access: view.update
251 252
    js: 'nojs|ajax'

253 254
views_ui.form_handler_group:
  path: '/admin/structure/views/{js}/handler-group/{view}/{display_id}/{type}/{id}'
255
  options:
256 257 258
    parameters:
      view:
        tempstore: TRUE
259
        type: entity:view
260
  defaults:
261
    _controller: '\Drupal\views_ui\Form\Ajax\ConfigHandlerGroup::getForm'
262
    form_state: NULL
263
  requirements:
264
    _entity_access: view.update
265
    js: 'nojs|ajax'