You are here

theme_switcher.routing.yml in Theme Switcher Rules 8

File

theme_switcher.routing.yml
View source
  1. theme_switcher.admin:
  2. path: '/admin/config/system/theme_switcher'
  3. defaults:
  4. _title: 'Theme Switcher'
  5. _entity_list: 'theme_switcher_rule'
  6. options:
  7. _admin_route: TRUE
  8. requirements:
  9. _permission: 'administer theme switcher rules+view theme switcher rules'
  10. entity.theme_switcher_rule.add_form:
  11. path: '/admin/config/system/theme_switcher/add'
  12. defaults:
  13. _entity_form: theme_switcher_rule.add
  14. _title: 'Add Theme Switcher Rule'
  15. options:
  16. _admin_route: TRUE
  17. requirements:
  18. _permission: 'create theme switcher rules'
  19. entity.theme_switcher_rule.edit_form:
  20. path: '/admin/config/system/theme_switcher/edit/{theme_switcher_rule}'
  21. defaults:
  22. _entity_form: theme_switcher_rule.edit
  23. _title: 'Edit Theme Switcher Rule'
  24. options:
  25. _admin_route: TRUE
  26. requirements:
  27. _entity_access: theme_switcher_rule.update
  28. entity.theme_switcher_rule.delete_form:
  29. path: '/admin/config/system/theme_switcher/delete/{theme_switcher_rule}'
  30. defaults:
  31. _entity_form: theme_switcher_rule.delete
  32. _title: 'Delete Theme Switcher Rule'
  33. options:
  34. _admin_route: TRUE
  35. requirements:
  36. _entity_access: theme_switcher_rule.delete
  37. theme_switcher.inline_action:
  38. path: '/admin/config/theme_switcher/{op}/{theme_switcher_rule}'
  39. defaults:
  40. _controller: 'Drupal\theme_switcher\Controller\ThemeSwitcherController::ajaxOperation'
  41. requirements:
  42. _entity_access: theme_switcher_rule.update
  43. _csrf_token: 'TRUE'
  44. op: 'enable|disable'