You are here

skinr_ui.routing.yml in Skinr 8.2

skinr_ui/skinr_ui.routing.yml

File

skinr_ui/skinr_ui.routing.yml
View source
  1. skinr_ui.list:
  2. path: '/admin/structure/skinr'
  3. defaults:
  4. _entity_list: 'skin'
  5. # _form: '\Drupal\skinr_ui\Form\OverviewForm'
  6. _title: 'Skinr'
  7. options:
  8. _admin_route: TRUE
  9. requirements:
  10. _permission: 'administer skinr'
  11. entity.skin.add:
  12. path: '/admin/structure/skinr/add'
  13. defaults:
  14. # _controller: '\Drupal\skinr_ui\Controller\SkinrUIController::add'
  15. _entity_form: 'skin.add'
  16. _title: 'Add new skin'
  17. requirements:
  18. _permission: 'edit skin settings'
  19. entity.skin.edit_form:
  20. path: '/admin/structure/skinr/{skin}/edit'
  21. defaults:
  22. _entity_form: 'skin.edit'
  23. _title: 'Edit skin'
  24. requirements:
  25. _permission: 'edit skin settings'
  26. entity.skin.enable:
  27. path: '/admin/structure/skinr/{skin}/enable'
  28. defaults:
  29. _controller: '\Drupal\skinr_ui\Controller\SkinrUIController::performOperation'
  30. op: 'enable'
  31. requirements:
  32. _permission: 'edit skin settings'
  33. entity.skin.disable:
  34. path: '/admin/structure/skinr/{skin}/disable'
  35. defaults:
  36. _controller: '\Drupal\skinr_ui\Controller\SkinrUIController::performOperation'
  37. op: 'disable'
  38. requirements:
  39. _permission: 'edit skin settings'
  40. entity.skin.revert_form:
  41. path: '/admin/structure/skinr/{skin}/revert'
  42. defaults:
  43. _entity_form: 'skin.revert'
  44. _title: 'Revert skin'
  45. requirements:
  46. _permission: 'edit skin settings'
  47. entity.skin.delete_form:
  48. path: '/admin/structure/skinr/{skin}/delete'
  49. defaults:
  50. _entity_form: 'skin.delete'
  51. _title: 'Delete skin'
  52. requirements:
  53. _permission: 'edit skin settings'
  54. # @todo
  55. skinr_ui.multiple.add:
  56. path: '/admin/structure/skinr/addmultiple'
  57. defaults:
  58. _form: '\Drupal\skinr_ui\Form\SkinsAddForm'
  59. _title: 'Add new skins'
  60. requirements:
  61. _permission: 'edit skin settings'
  62. skinr_ui.multiple.edit:
  63. path: '/admin/structure/skinr/{element_type}/{element}/{theme}'
  64. defaults:
  65. _form: '\Drupal\skinr_ui\Form\SkinsEditForm'
  66. _title: 'Configure skins'
  67. _title_callback: '\Drupal\skinr_ui\Form\SkinsEditForm::getTitle'
  68. # @todo Turn this into the current theme.
  69. #theme: 'bartik'
  70. requirements:
  71. _permission: 'edit skin settings'
  72. skinr_ui.library:
  73. path: '/admin/structure/skinr/library'
  74. defaults:
  75. _controller: '\Drupal\skinr_ui\Controller\SkinrUIController::library'
  76. _title: 'Skinr Plugin Library'
  77. options:
  78. _admin_route: TRUE
  79. requirements:
  80. _permission: 'administer skinr'
  81. skinr_ui.library_theme:
  82. path: '/admin/structure/skinr/library/list/{theme}'
  83. defaults:
  84. _controller: '\Drupal\skinr_ui\Controller\SkinrUIController::library'
  85. _title: 'Skinr Plugin Library'
  86. options:
  87. _admin_route: TRUE
  88. requirements:
  89. _access_theme: 'TRUE'
  90. _permission: 'administer skinr'