You are here

paragraphs_browser.routing.yml in Paragraphs Browser 8

File

paragraphs_browser.routing.yml
View source
  1. entity.paragraphs_browser_type.collection:
  2. path: '/admin/structure/paragraphs_type/browsers'
  3. defaults:
  4. _entity_list: 'paragraphs_browser_type'
  5. _title: 'Paragraphs browser types'
  6. requirements:
  7. _permission: 'administer paragraphs types'
  8. paragraphs_browser.type_add:
  9. path: '/admin/structure/paragraphs_type/browsers/add'
  10. defaults:
  11. _entity_form: 'paragraphs_browser_type.add'
  12. _title: 'Add paragraphs browser collection type'
  13. requirements:
  14. _permission: 'administer paragraphs types'
  15. entity.paragraphs_browser_type.edit_form:
  16. path: '/admin/structure/paragraphs_type/browsers/{paragraphs_browser_type}/edit'
  17. defaults:
  18. _entity_form: 'paragraphs_browser_type.edit'
  19. requirements:
  20. _permission: 'administer paragraphs types'
  21. entity.paragraphs_browser_type.delete_form:
  22. path: '/admin/structure/paragraphs_type/browsers/{paragraphs_browser_type}/delete'
  23. defaults:
  24. _entity_form: 'paragraphs_browser_type.delete'
  25. _title: 'Delete'
  26. requirements:
  27. _permission: 'administer paragraphs types'
  28. entity.paragraphs_browser_type.groups_form:
  29. path: '/admin/structure/paragraphs_type/browsers/{paragraphs_browser_type}/groups'
  30. defaults:
  31. _entity_form: 'paragraphs_browser_type.groups'
  32. _title: 'Manage Groups'
  33. requirements:
  34. _permission: 'administer paragraphs types'
  35. options:
  36. paragraphs_browser_type:
  37. view:
  38. tempstore: TRUE
  39. type: 'entity:paragraphs_browser_type'
  40. entity.paragraphs_browser_type.group_add_form:
  41. path: '/admin/structure/paragraphs_type/browsers/{paragraphs_browser_type}/groups/add'
  42. defaults:
  43. _entity_form: 'paragraphs_browser_type.group_add'
  44. _title: 'Add Group'
  45. requirements:
  46. _permission: 'administer paragraphs types'
  47. options:
  48. paragraphs_browser_type:
  49. view:
  50. tempstore: TRUE
  51. type: 'entity:paragraphs_browser_type'
  52. paragraphs_browser.paragraphs_browser_type.group_edit_form:
  53. path: '/admin/structure/paragraphs_type/browsers/{paragraphs_browser_type}/groups/{group_machine_name}/edit'
  54. defaults:
  55. _form: 'Drupal\paragraphs_browser\Form\GroupEditForm'
  56. _title: 'Manage Group'
  57. requirements:
  58. _permission: 'administer paragraphs types'
  59. options:
  60. parameters:
  61. paragraphs_browser_type:
  62. type: entity:paragraphs_browser_type
  63. paragraphs_browser.paragraphs_browser_type.group_delete_form:
  64. path: '/admin/structure/paragraphs_type/browsers/{paragraphs_browser_type}/groups/{group_machine_name}/delete'
  65. defaults:
  66. _form: 'Drupal\paragraphs_browser\Form\GroupDeleteConfirm'
  67. _title: 'Delete Group'
  68. requirements:
  69. _permission: 'administer paragraphs types'
  70. options:
  71. parameters:
  72. paragraphs_browser_type:
  73. type: entity:paragraphs_browser_type
  74. paragraphs_browser.paragraph_type.group_edit:
  75. path: '/admin/structure/paragraphs_type/{paragraphs_type}/browsers/groups'
  76. defaults:
  77. _form: 'Drupal\paragraphs_browser\Form\ParagraphTypeGroupsForm'
  78. _title: 'Manage Groups'
  79. requirements:
  80. _permission: 'administer paragraphs types'
  81. options:
  82. parameters:
  83. paragraphs_type:
  84. type: entity:paragraphs_type
  85. paragraphs_browser.paragraphs_browser_controller:
  86. path: '/paragraphs_browser/{field_config}/{paragraphs_browser_type}/{uuid}'
  87. defaults:
  88. _controller: '\Drupal\paragraphs_browser\Controller\ParagraphsBrowserController::paragraphsBrowserSelect'
  89. _title: 'Select a paragraph type'
  90. requirements:
  91. _permission: 'access content'
  92. options:
  93. parameters:
  94. field_config:
  95. type: entity:field_config
  96. paragraphs_browser_type:
  97. type: entity:paragraphs_browser_type