styleswitcher.routing.yml in Style Switcher 8.2
Same filename and directory in other branches
6 string references to YAML keys in styleswitcher.routing.yml
- Styleswitcher::build in src/
Plugin/ Block/ Styleswitcher.php - Builds and returns the renderable array for this block plugin.
- StyleswitcherAdmin::buildForm in src/
Form/ StyleswitcherAdmin.php - Form constructor.
- StyleswitcherStyleDeleteForm::getCancelUrl in src/
Form/ StyleswitcherStyleDeleteForm.php - Returns the route to go to if the user cancels the action.
- StyleswitcherStyleDeleteForm::submitForm in src/
Form/ StyleswitcherStyleDeleteForm.php - Form submission handler.
- StyleswitcherStyleForm::buildForm in src/
Form/ StyleswitcherStyleForm.php - Form constructor.
File
styleswitcher.routing.ymlView source
- styleswitcher.admin:
- path: '/admin/config/user-interface/styleswitcher'
- defaults:
- _form: '\Drupal\styleswitcher\Form\StyleswitcherAdmin'
- _title: 'Style Switcher'
- requirements:
- _permission: 'administer styleswitcher'
-
- styleswitcher.config_theme:
- path: '/admin/config/user-interface/styleswitcher/settings/{theme}'
- defaults:
- _form: '\Drupal\styleswitcher\Form\StyleswitcherConfigTheme'
- _title: 'Style Switcher'
- requirements:
- _permission: 'administer styleswitcher'
- _access_theme: 'TRUE'
-
- styleswitcher.style_add:
- path: '/admin/config/user-interface/styleswitcher/add'
- defaults:
- _form: '\Drupal\styleswitcher\Form\StyleswitcherStyleForm'
- _title: 'Add style'
- requirements:
- _permission: 'administer styleswitcher'
-
- styleswitcher.style_edit:
- path: '/admin/config/user-interface/styleswitcher/custom/{style}'
- defaults:
- _form: '\Drupal\styleswitcher\Form\StyleswitcherStyleForm'
- _title: 'Edit'
- _title_callback: '\Drupal\styleswitcher\Form\StyleswitcherStyleForm::title'
- requirements:
- _permission: 'administer styleswitcher'
- options:
- parameters:
- style:
- type: 'styleswitcher_style'
-
- styleswitcher.style_delete:
- path: '/admin/config/user-interface/styleswitcher/custom/{style}/delete'
- defaults:
- _form: '\Drupal\styleswitcher\Form\StyleswitcherStyleDeleteForm'
- _title: 'Delete'
- requirements:
- _permission: 'administer styleswitcher'
- options:
- parameters:
- style:
- type: 'styleswitcher_style'
-
- styleswitcher.switch:
- path: '/styleswitcher/switch/{theme}/{type}/{style}'
- defaults:
- _controller: '\Drupal\styleswitcher\Controller\DefaultController::styleswitcherSwitch'
- _title: 'Style Switcher'
- requirements:
- _access_theme: 'TRUE'
- options:
- no_cache: TRUE
- parameters:
- style:
- type: 'styleswitcher_style'
-
- styleswitcher.css:
- path: '/styleswitcher/css/{theme}'
- defaults:
- _controller: '\Drupal\styleswitcher\Controller\DefaultController::styleswitcherCss'
- _title: 'Style Switcher'
- requirements:
- _access_theme: 'TRUE'
- options:
- no_cache: TRUE