devel.routing.yml 4.21 KB
Newer Older
1 2
devel.admin_settings:
  path: '/admin/config/development/devel'
3 4
  defaults:
    _form: '\Drupal\devel\Form\SettingsForm'
5
    _title: 'Devel settings'
6 7
  requirements:
    _permission: 'administer site configuration'
8 9 10 11 12 13

devel.reinstall:
  path: '/devel/reinstall'
  defaults:
    _form: '\Drupal\devel\Form\DevelReinstall'
    _title: 'Reinstall modules'
14 15
  options:
    _admin_route: TRUE
16 17 18 19 20 21
  requirements:
    _permission: 'administer site configuration'

devel.menu_rebuild:
  path: '/devel/menu/reset'
  defaults:
22 23
    _form: '\Drupal\devel\Form\RouterRebuildConfirmForm'
    _title: 'Rebuild router'
24 25
  options:
    _admin_route: TRUE
26 27 28 29 30
  requirements:
    _permission: 'administer site configuration'

devel.configs_list:
  path: '/devel/config/{filter}'
31 32
  options:
    _admin_route: TRUE
33 34 35 36 37 38 39 40 41 42 43 44
  defaults:
    _form: '\Drupal\devel\Form\ConfigsList'
    _title: 'Config editor'
    filter: ''
  requirements:
    _permission: 'administer site configuration'

devel.config_edit:
  path: '/devel/config/edit/{config_name}'
  defaults:
    _form: '\Drupal\devel\Form\ConfigEditor'
    _title: 'Edit configuration object: !config_name'
45 46
  options:
    _admin_route: TRUE
47 48 49 50 51 52
  requirements:
    _permission: 'administer site configuration'

devel.state_system_page:
  path: '/devel/state'
  defaults:
53
    _controller: '\Drupal\devel\Controller\DevelController::stateSystemPage'
54
    _title: 'State editor'
55 56
  options:
    _admin_route: TRUE
57 58 59 60
  requirements:
    _permission: 'access devel information'

devel.system_state_edit:
61
  path: '/devel/state/edit/{state_name}'
62 63
  defaults:
    _form: '\Drupal\devel\Form\SystemStateEdit'
64
    _title: 'Edit state variable: @state_name'
65 66
  options:
    _admin_route: TRUE
67 68 69 70 71 72
  requirements:
    _permission: 'administer site configuration'

devel.menu_item:
  path: '/devel/menu/item'
  defaults:
73
    _controller: '\Drupal\devel\Controller\DevelController::menuItem'
74
    _title: 'Menu item'
75 76
  options:
    _admin_route: TRUE
77 78 79 80 81 82
  requirements:
    _permission: 'access devel information'

devel.theme_registry:
  path: '/devel/theme/registry'
  defaults:
83
    _controller: '\Drupal\devel\Controller\DevelController::themeRegistry'
84
    _title: 'Theme registry'
85 86
  options:
    _admin_route: TRUE
87 88 89 90 91 92
  requirements:
    _permission: 'access devel information'

devel.entity_info_page:
  path: '/devel/entity/info'
  defaults:
93
    _controller: '\Drupal\devel\Controller\DevelController::entityInfoPage'
94
    _title: 'Entity info'
95 96
  options:
    _admin_route: TRUE
97 98 99 100 101 102
  requirements:
    _permission: 'access devel information'

devel.field_info_page:
  path: '/devel/field/info'
  defaults:
103
    _controller: '\Drupal\devel\Controller\DevelController::fieldInfoPage'
104
    _title: 'Field info'
105 106
  options:
    _admin_route: TRUE
107 108 109 110 111 112 113 114
  requirements:
    _permission: 'access devel information'

devel.execute_php:
  path: '/devel/php'
  defaults:
    _form: '\Drupal\devel\Form\ExecutePHP'
    _title: 'Execute PHP code'
115 116
  options:
    _admin_route: TRUE
117 118 119 120 121 122
  requirements:
    _permission: 'execute php code'

devel.session:
  path: '/devel/session'
  defaults:
123
    _controller: '\Drupal\devel\Controller\DevelController::session'
124
    _title: 'Session viewer'
125 126
  options:
    _admin_route: TRUE
127 128 129 130 131 132
  requirements:
    _permission: 'access devel information'

devel.switch:
  path: '/devel/switch/{name}'
  defaults:
133
    _controller: '\Drupal\devel\Controller\SwitchUserController::switchUser'
134
    _title: 'Switch user'
135
    name: ''
136 137
  options:
    _admin_route: TRUE
138
  requirements:
139
    _permission: 'switch users'
140
    _csrf_token: 'TRUE'
141 142 143 144

devel.elements_page:
  path: '/devel/elements'
  defaults:
145
    _controller: '\Drupal\devel\Controller\DevelController::elementsPage'
146
    _title: 'Element Info'
147 148
  options:
    _admin_route: TRUE
149 150 151 152 153 154
  requirements:
    _permission: 'access devel information'

devel.cache_clear:
  path: '/devel/cache/clear'
  defaults:
155
    _controller: '\Drupal\devel\Controller\DevelController::cacheClear'
156
    _title: 'Clear cache'
157 158
  options:
    _admin_route: TRUE
159 160
  requirements:
    _permission: 'access devel information'
161
    _csrf_token: 'TRUE'
162 163 164 165 166 167

devel.run_cron:
  path: '/devel/run-cron'
  defaults:
    _controller: '\Drupal\system\CronController::runManually'
    _title: 'Run cron'
168 169
  options:
    _admin_route: TRUE
170 171
  requirements:
    _permission: 'administer site configuration'
172
    _csrf_token: 'TRUE'