system.routing.yml 14 KB
Newer Older
1 2 3 4 5 6 7 8
system.401:
  path: '/system/401'
  defaults:
    _controller: '\Drupal\system\Controller\Http4xxController:on401'
    _title: 'Unauthorized'
  requirements:
    _access: 'TRUE'

9 10 11
system.403:
  path: '/system/403'
  defaults:
12
    _controller: '\Drupal\system\Controller\Http4xxController:on403'
13 14 15 16 17 18 19
    _title: 'Access denied'
  requirements:
    _access: 'TRUE'

system.404:
  path: '/system/404'
  defaults:
20
    _controller: '\Drupal\system\Controller\Http4xxController:on404'
21 22 23 24
    _title: 'Page not found'
  requirements:
    _access: 'TRUE'

25 26 27 28 29 30 31 32
system.4xx:
  path: '/system/4xx'
  defaults:
    _controller: '\Drupal\system\Controller\Http4xxController:on4xx'
    _title: 'Client error'
  requirements:
    _access: 'TRUE'

33
system.admin:
34
  path: '/admin'
35
  defaults:
36
    _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
37
    _title: 'Administration'
38 39 40
  requirements:
    _permission: 'access administration pages'

41
system.admin_structure:
42
  path: '/admin/structure'
43
  defaults:
44
    _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
45
    _title: 'Structure'
46 47 48
  requirements:
    _permission: 'access administration pages'

49
system.admin_reports:
50
  path: '/admin/reports'
51
  defaults:
52
    _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
53
    _title: 'Reports'
54 55 56
  requirements:
    _permission: 'access site reports'

57
system.admin_config_media:
58
  path: '/admin/config/media'
59
  defaults:
60
    _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
61
    _title: 'Media'
62 63 64
  requirements:
    _permission: 'access administration pages'

65
system.admin_config_services:
66
  path: '/admin/config/services'
67
  defaults:
68
    _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
69
    _title: 'Web services'
70 71 72
  requirements:
    _permission: 'access administration pages'

73
system.admin_config_development:
74
  path: '/admin/config/development'
75
  defaults:
76
    _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
77
    _title: 'Development'
78 79 80
  requirements:
    _permission: 'access administration pages'

81
system.admin_config_regional:
82
  path: '/admin/config/regional'
83
  defaults:
84
    _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
85
    _title: 'Regional and language'
86 87 88
  requirements:
    _permission: 'access administration pages'

89
system.admin_config_search:
90
  path: '/admin/config/search'
91
  defaults:
92
    _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
93
    _title: 'Search and metadata'
94 95 96
  requirements:
    _permission: 'access administration pages'

97
system.admin_config_system:
98
  path: '/admin/config/system'
99
  defaults:
100
    _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
101
    _title: 'System'
102 103 104
  requirements:
    _permission: 'access administration pages'

105
system.admin_config_ui:
106
  path: '/admin/config/user-interface'
107
  defaults:
108
    _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
109
    _title: 'User interface'
110 111 112
  requirements:
    _permission: 'access administration pages'

113
system.admin_config_workflow:
114
  path: '/admin/config/workflow'
115
  defaults:
116
    _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
117
    _title: 'Workflow'
118 119 120
  requirements:
    _permission: 'access administration pages'

121
system.admin_config_content:
122
  path: '/admin/config/content'
123
  defaults:
124
    _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
125
    _title: 'Content authoring'
126 127 128
  requirements:
    _permission: 'access administration pages'

129
system.cron:
130
  path: '/cron/{key}'
131 132
  defaults:
    _controller: '\Drupal\system\CronController::run'
133 134
  options:
    no_cache: TRUE
135 136
  requirements:
    _access_system_cron: 'TRUE'
137

138
system.admin_compact_page:
139
  path: '/admin/compact/{mode}'
140
  defaults:
141
    _controller: '\Drupal\system\Controller\SystemController::compactPage'
142 143 144 145
    mode: 'off'
  requirements:
    _permission: 'access administration pages'

146
system.machine_name_transliterate:
147
  path: '/machine_name/transliterate'
148 149 150 151
  defaults:
    _controller: '\Drupal\system\MachineNameController::transliterate'
  requirements:
    _permission: 'access content'
152

153
system.site_information_settings:
154
  path: '/admin/config/system/site-information'
155
  defaults:
156
    _form: '\Drupal\system\Form\SiteInformationForm'
157
    _title: 'Basic site settings'
158 159 160
  requirements:
    _permission: 'administer site configuration'

161
system.cron_settings:
162
  path: '/admin/config/system/cron'
163
  defaults:
164
    _form: '\Drupal\system\Form\CronForm'
165
    _title: 'Cron'
166 167 168
  requirements:
    _permission: 'administer site configuration'

169
system.logging_settings:
170
  path: '/admin/config/development/logging'
171
  defaults:
172
    _form: '\Drupal\system\Form\LoggingForm'
173
    _title: 'Logging and errors'
174 175 176
  requirements:
    _permission: 'administer site configuration'

177
system.performance_settings:
178
  path: '/admin/config/development/performance'
179
  defaults:
180
    _form: '\Drupal\system\Form\PerformanceForm'
181
    _title: 'Performance'
182 183 184
  requirements:
    _permission: 'administer site configuration'

185
system.file_system_settings:
186
  path: '/admin/config/media/file-system'
187
  defaults:
188
    _form: '\Drupal\system\Form\FileSystemForm'
189
    _title: 'File system'
190 191 192
  requirements:
    _permission: 'administer site configuration'

193
system.rss_feeds_settings:
194
  path: '/admin/config/services/rss-publishing'
195
  defaults:
196
    _form: '\Drupal\system\Form\RssFeedsForm'
197
    _title: 'RSS publishing'
198 199 200
  requirements:
    _permission: 'administer site configuration'

201
system.regional_settings:
202
  path: '/admin/config/regional/settings'
203
  defaults:
204
    _form: '\Drupal\system\Form\RegionalForm'
205
    _title: 'Regional settings'
206 207 208
  requirements:
    _permission: 'administer site configuration'

209
system.image_toolkit_settings:
210
  path: '/admin/config/media/image-toolkit'
211
  defaults:
212
    _form: '\Drupal\system\Form\ImageToolkitForm'
213
    _title: 'Image toolkit'
214
  requirements:
215
    _permission: 'administer site configuration'
216

217
system.site_maintenance_mode:
218
  path: '/admin/config/development/maintenance'
219
  defaults:
220
    _form: '\Drupal\system\Form\SiteMaintenanceModeForm'
221
    _title: 'Maintenance mode'
222
  requirements:
223
    _permission: 'administer site configuration+administer software updates'
224

225
system.run_cron:
226
  path: '/admin/reports/status/run-cron'
227
  defaults:
228
    _controller: '\Drupal\system\CronController::runManually'
229 230
  options:
    no_cache: TRUE
231 232
  requirements:
    _permission: 'administer site configuration'
233
    _csrf_token: 'TRUE'
234

235
entity.date_format.collection:
236
  path: '/admin/config/regional/date-time'
237
  defaults:
238
    _entity_list: 'date_format'
239
    _title: 'Date and time formats'
240 241 242
  requirements:
    _permission: 'administer site configuration'

243
system.date_format_add:
244
  path: '/admin/config/regional/date-time/formats/add'
245
  defaults:
246
    _entity_form: 'date_format.add'
247
    _title: 'Add date format'
248 249 250
  requirements:
    _permission: 'administer site configuration'

251
entity.date_format.edit_form:
252
  path: '/admin/config/regional/date-time/formats/manage/{date_format}'
253 254
  defaults:
    _entity_form: 'date_format.edit'
255
    _title: 'Edit date format'
256 257 258
  requirements:
    _entity_access: 'date_format.update'

259
entity.date_format.delete_form:
260
  path: '/admin/config/regional/date-time/formats/manage/{date_format}/delete'
261
  defaults:
262
    _entity_form: 'date_format.delete'
263
    _title: 'Delete date format'
264
  requirements:
265
    _entity_access: 'date_format.delete'
266

267
system.modules_list:
268
  path: '/admin/modules'
269
  defaults:
270 271
    _title: 'Extend'
    _title_context: 'With components'
272
    _form: '\Drupal\system\Form\ModulesListForm'
273 274 275
  requirements:
    _permission: 'administer modules'

276
system.modules_list_confirm:
277
  path: '/admin/modules/list/confirm'
278
  defaults:
279
    _form: '\Drupal\system\Form\ModulesListConfirmForm'
280
    _title: 'Some required modules must be enabled'
281 282 283
  requirements:
    _permission: 'administer modules'

284 285 286
system.modules_list_experimental_confirm:
  path: '/admin/modules/list/confirm-experimental'
  defaults:
287
    _form: '\Drupal\system\Form\ModulesListExperimentalConfirmForm'
288 289 290 291
    _title: 'Experimental modules'
  requirements:
    _permission: 'administer modules'

292 293
system.theme_uninstall:
  path: '/admin/appearance/uninstall'
294
  defaults:
295
    _controller: '\Drupal\system\Controller\ThemeController::uninstall'
296 297
  requirements:
    _permission: 'administer themes'
298
    _csrf_token: 'TRUE'
299

300 301
system.theme_install:
  path: '/admin/appearance/install'
302
  defaults:
303
    _controller: '\Drupal\system\Controller\ThemeController::install'
304 305
  requirements:
    _permission: 'administer themes'
306
    _csrf_token: 'TRUE'
307

308
system.status:
309
  path: '/admin/reports/status'
310
  defaults:
311
    _controller: '\Drupal\system\Controller\SystemInfoController::status'
312
    _title: 'Status report'
313 314 315
  requirements:
    _permission: 'administer site configuration'

316
system.php:
317
  path: '/admin/reports/status/php'
318
  defaults:
319
    _controller: '\Drupal\system\Controller\SystemInfoController::php'
320 321
  requirements:
    _permission: 'administer site configuration'
322 323 324 325
  # This page should not be treated as administrative since it outputs its own
  # content (outside of any administration theme).
  options:
    _admin_route: FALSE
326

327
system.admin_index:
328
  path: '/admin/index'
329
  defaults:
330
    _controller: '\Drupal\system\Controller\AdminController::index'
331
    _title: 'Administration'
332 333
  requirements:
    _permission: 'access administration pages'
334

335
system.files:
336
  path: '/system/files/{scheme}'
337
  defaults:
338
    _controller: '\Drupal\system\FileDownloadController::download'
339 340 341 342
    scheme: private
  requirements:
    _access: 'TRUE'

343 344 345
system.private_file_download:
  path: '/system/files/{filepath}'
  defaults:
346
    _controller: '\Drupal\system\FileDownloadController::download'
347 348 349 350 351 352
  requirements:
    # Permissive regex to allow slashes in filepath see
    # http://symfony.com/doc/current/cookbook/routing/slash_in_parameter.html
    filepath: .+
    _access: 'TRUE'

353 354 355 356 357 358 359 360 361 362 363 364
system.temporary:
  path: '/system/temporary'
  defaults:
    _controller: '\Drupal\system\FileDownloadController::download'
    scheme: temporary
  requirements:
    _access: 'TRUE'

system.themes_page:
  path: '/admin/appearance'
  defaults:
    _title: 'Appearance'
365
    _controller: '\Drupal\system\Controller\SystemController::themesPage'
366 367 368 369 370 371
  requirements:
    _permission: 'administer themes'

system.theme_set_default:
  path: '/admin/appearance/default'
  defaults:
372
    _title: 'Set as default theme'
373
    _controller: '\Drupal\system\Controller\ThemeController::setDefaultTheme'
374 375
  requirements:
    _permission: 'administer themes'
376
    _csrf_token: 'TRUE'
377

378
system.theme_settings:
379
  path: '/admin/appearance/settings'
380 381
  defaults:
    _form: '\Drupal\system\Form\ThemeSettingsForm'
382
    _title: 'Appearance settings'
383 384 385
  requirements:
    _permission: 'administer themes'

386 387 388 389
system.theme_settings_theme:
  path: '/admin/appearance/settings/{theme}'
  defaults:
    _form: '\Drupal\system\Form\ThemeSettingsForm'
390
    _title_callback: 'theme_handler:getName'
391 392 393
  requirements:
    _permission: 'administer themes'

394
'<front>':
395
  path: '/'
396 397
  defaults:
    _title: Home
398 399 400
  requirements:
    _access: 'TRUE'

401
'<none>':
402 403
  path: ''
  options:
404
    _no_path: TRUE
405 406
  requirements:
    _access: 'TRUE'
407

408 409 410 411 412 413 414
'<nolink>':
  path: ''
  options:
    _no_path: TRUE
  requirements:
    _access: 'TRUE'

415 416 417 418 419 420 421
'<button>':
  path: ''
  options:
    _no_path: TRUE
  requirements:
    _access: 'TRUE'

422 423 424
'<current>':
  path: '<current>'

425
system.modules_uninstall:
426
  path: '/admin/modules/uninstall'
427
  defaults:
428
    _form: '\Drupal\system\Form\ModulesUninstallForm'
429
    _title: 'Uninstall'
430 431 432
  requirements:
    _permission: 'administer modules'

433
system.modules_uninstall_confirm:
434
  path: '/admin/modules/uninstall/confirm'
435
  defaults:
436
    _form: '\Drupal\system\Form\ModulesUninstallConfirmForm'
437
    _title: 'Confirm uninstall'
438 439 440
  requirements:
    _permission: 'administer modules'

441 442 443 444 445 446 447 448
system.prepare_modules_entity_uninstall:
  path: '/admin/modules/uninstall/entity/{entity_type_id}'
  defaults:
    _form: '\Drupal\system\Form\PrepareModulesEntityUninstallForm'
    _title_callback: '\Drupal\system\Form\PrepareModulesEntityUninstallForm::formTitle'
  requirements:
    _permission: 'administer modules'

449
system.timezone:
450
  path: '/system/timezone/{abbreviation}/{offset}/{is_daylight_saving_time}'
451 452
  defaults:
    _controller: '\Drupal\system\Controller\TimezoneController::getTimezone'
453 454 455
    abbreviation: ''
    offset: -1
    is_daylight_saving_time: NULL
456 457
  requirements:
    _access: 'TRUE'
458

459
system.admin_config:
460
  path: '/admin/config'
461
  defaults:
462
    _controller: '\Drupal\system\Controller\SystemController::overview'
463
    link_id: 'system.admin_config'
464
    _title: 'Configuration'
465 466
  requirements:
    _permission: 'access administration pages'
467

468
system.batch_page.html:
469 470
  path: '/batch'
  defaults:
471
    _controller: '\Drupal\system\Controller\BatchController::batchPage'
472
    _title_callback: '\Drupal\system\Controller\BatchController::batchPageTitle'
473 474
  requirements:
    _access: 'TRUE'
475
    _format: 'html'
476 477
  options:
    _admin_route: TRUE
478 479

system.batch_page.json:
480
  path: '/batch'
481 482 483 484
  defaults:
    _controller: '\Drupal\system\Controller\BatchController::batchPage'
  requirements:
    _access: 'TRUE'
485
    _format: 'json'
486 487
  options:
    _admin_route: TRUE
488

489 490
# Note: This route just exists for generating URLs, the dedicated
# frontcontroller is used if the URL is accessed.
491 492 493 494 495
system.db_update:
  path: '/update.php/{op}'
  defaults:
    op: 'info'
  requirements:
496
    _access_system_update: 'TRUE'
497 498 499
  options:
    default_url_options:
      path_processing: FALSE
500 501 502 503

system.admin_content:
  path: '/admin/content'
  defaults:
504
    _controller: '\Drupal\system\Controller\SystemController::overview'
505
    link_id: 'system.admin_content'
506 507 508
    _title: 'Content'
  requirements:
    _permission: 'access administration pages'
509 510

system.entity_autocomplete:
511
  path: '/entity_reference_autocomplete/{target_type}/{selection_handler}/{selection_settings_key}'
512 513 514 515
  defaults:
    _controller: '\Drupal\system\Controller\EntityAutocompleteController::handleAutocomplete'
  requirements:
    _access: 'TRUE'
516 517 518 519 520 521 522

system.csrftoken:
  path: '/session/token'
  defaults:
    _controller: '\Drupal\system\Controller\CsrfTokenController::csrfToken'
  requirements:
    _access: 'TRUE'