You are here

styleswitcher.routing.yml in Style Switcher 3.0.x

Same filename and directory in other branches
  1. 8.2 styleswitcher.routing.yml

File

styleswitcher.routing.yml
View source
  1. styleswitcher.admin:
  2. path: '/admin/config/user-interface/styleswitcher'
  3. defaults:
  4. _form: '\Drupal\styleswitcher\Form\StyleswitcherAdmin'
  5. _title: 'Style Switcher'
  6. requirements:
  7. _permission: 'administer styleswitcher'
  8. styleswitcher.config_theme:
  9. path: '/admin/config/user-interface/styleswitcher/settings/{theme}'
  10. defaults:
  11. _form: '\Drupal\styleswitcher\Form\StyleswitcherConfigTheme'
  12. _title: 'Style Switcher'
  13. requirements:
  14. _permission: 'administer styleswitcher'
  15. _access_theme: 'TRUE'
  16. styleswitcher.style_add:
  17. path: '/admin/config/user-interface/styleswitcher/add'
  18. defaults:
  19. _form: '\Drupal\styleswitcher\Form\StyleswitcherStyleForm'
  20. _title: 'Add style'
  21. requirements:
  22. _permission: 'administer styleswitcher'
  23. styleswitcher.style_edit:
  24. path: '/admin/config/user-interface/styleswitcher/custom/{style}'
  25. defaults:
  26. _form: '\Drupal\styleswitcher\Form\StyleswitcherStyleForm'
  27. _title: 'Edit'
  28. _title_callback: '\Drupal\styleswitcher\Form\StyleswitcherStyleForm::title'
  29. requirements:
  30. _permission: 'administer styleswitcher'
  31. options:
  32. parameters:
  33. style:
  34. type: 'styleswitcher_style'
  35. styleswitcher.style_delete:
  36. path: '/admin/config/user-interface/styleswitcher/custom/{style}/delete'
  37. defaults:
  38. _form: '\Drupal\styleswitcher\Form\StyleswitcherStyleDeleteForm'
  39. _title: 'Delete'
  40. requirements:
  41. _permission: 'administer styleswitcher'
  42. options:
  43. parameters:
  44. style:
  45. type: 'styleswitcher_style'
  46. styleswitcher.switch:
  47. path: '/styleswitcher/switch/{theme}/{type}/{style}'
  48. defaults:
  49. _controller: '\Drupal\styleswitcher\Controller\DefaultController::styleswitcherSwitch'
  50. _title: 'Style Switcher'
  51. requirements:
  52. _access_theme: 'TRUE'
  53. options:
  54. no_cache: TRUE
  55. parameters:
  56. style:
  57. type: 'styleswitcher_style'
  58. styleswitcher.css:
  59. path: '/styleswitcher/css/{theme}'
  60. defaults:
  61. _controller: '\Drupal\styleswitcher\Controller\DefaultController::styleswitcherCss'
  62. _title: 'Style Switcher'
  63. requirements:
  64. _access_theme: 'TRUE'
  65. options:
  66. no_cache: TRUE