You are here

geysir.routing.yml in Geysir 8

File

geysir.routing.yml
View source
  1. geysir.delete_form:
  2. path: 'geysir/delete/{parent_entity_type}/{parent_entity_bundle}/{parent_entity_revision}/{field}/{field_wrapper_id}/{delta}/{paragraph}/{paragraph_revision}'
  3. defaults:
  4. _entity_form: 'paragraph.geysir_delete'
  5. requirements:
  6. _permission: 'geysir manage paragraphs from front-end'
  7. options:
  8. _admin_route: TRUE
  9. parameters:
  10. paragraph:
  11. type: 'entity:paragraph'
  12. paragraph_revision:
  13. type: 'entity_revision:paragraph'
  14. geysir.edit_form:
  15. path: 'geysir/edit/{parent_entity_type}/{parent_entity_bundle}/{parent_entity_revision}/{field}/{field_wrapper_id}/{delta}/{paragraph}/{paragraph_revision}'
  16. defaults:
  17. _entity_form: 'paragraph.geysir_edit'
  18. requirements:
  19. _permission: 'geysir manage paragraphs from front-end'
  20. options:
  21. _admin_route: TRUE
  22. parameters:
  23. paragraph:
  24. type: 'entity:paragraph'
  25. paragraph_revision:
  26. type: 'entity_revision:paragraph'
  27. geysir.modal.delete_form:
  28. path: 'geysir/modal/delete/{parent_entity_type}/{parent_entity_bundle}/{parent_entity_revision}/{field}/{field_wrapper_id}/{delta}/{paragraph}/{paragraph_revision}/{js}'
  29. defaults:
  30. _title: 'Delete'
  31. _controller: '\Drupal\geysir\Controller\GeysirModalController::delete'
  32. requirements:
  33. _permission: 'geysir manage paragraphs from front-end'
  34. js: 'nojs|ajax'
  35. options:
  36. _admin_route: TRUE
  37. parameters:
  38. paragraph:
  39. type: 'entity:paragraph'
  40. paragraph_revision:
  41. type: 'entity_revision:paragraph'
  42. geysir.modal.edit_form:
  43. path: 'geysir/modal/edit/{parent_entity_type}/{parent_entity_bundle}/{parent_entity_revision}/{field}/{field_wrapper_id}/{delta}/{paragraph}/{paragraph_revision}/{js}'
  44. defaults:
  45. _title: 'Edit'
  46. _controller: '\Drupal\geysir\Controller\GeysirModalController::edit'
  47. requirements:
  48. _permission: 'geysir manage paragraphs from front-end'
  49. js: 'nojs|ajax'
  50. options:
  51. _admin_route: TRUE
  52. parameters:
  53. paragraph:
  54. type: 'entity:paragraph'
  55. paragraph_revision:
  56. type: 'entity_revision:paragraph'
  57. geysir.modal.translate_form:
  58. path: 'geysir/modal/translate/{parent_entity_type}/{parent_entity_bundle}/{parent_entity_revision}/{field}/{field_wrapper_id}/{delta}/{paragraph}/{paragraph_revision}/{js}'
  59. defaults:
  60. _title: 'Translate'
  61. _controller: '\Drupal\geysir\Controller\GeysirModalController::translate'
  62. requirements:
  63. _permission: 'geysir manage paragraphs from front-end'
  64. js: 'nojs|ajax'
  65. options:
  66. _admin_route: TRUE
  67. parameters:
  68. paragraph:
  69. type: 'entity:paragraph'
  70. paragraph_revision:
  71. type: 'entity_revision:paragraph'
  72. geysir.modal.add_form:
  73. path: 'geysir/modal/add/{parent_entity_type}/{parent_entity_bundle}/{parent_entity_revision}/{field}/{field_wrapper_id}/{delta}/{paragraph}/{paragraph_revision}/{position}/{js}/{bundle}'
  74. defaults:
  75. _title: 'Add'
  76. _controller: '\Drupal\geysir\Controller\GeysirModalController::add'
  77. bundle: NULL
  78. requirements:
  79. _permission: 'geysir manage paragraphs from front-end'
  80. js: 'nojs|ajax'
  81. options:
  82. _admin_route: TRUE
  83. parameters:
  84. paragraph:
  85. type: 'entity:paragraph'
  86. paragraph_revision:
  87. type: 'entity_revision:paragraph'
  88. geysir.cut:
  89. path: 'geysir/cut/{parent_entity_type}/{parent_entity_bundle}/{parent_entity_revision}/{field}/{field_wrapper_id}/{delta}/{paragraph_to_cut}/{paragraph_revision}/{js}'
  90. defaults:
  91. _title: 'Cut'
  92. _controller: '\Drupal\geysir\Controller\GeysirCutPasteController::cut'
  93. requirements:
  94. _permission: 'geysir manage paragraphs from front-end'
  95. js: 'nojs|ajax'
  96. options:
  97. _admin_route: TRUE
  98. parameters:
  99. paragraph_to_cut:
  100. type: 'entity:paragraph'
  101. paragraph_revision:
  102. type: 'entity_revision:paragraph'
  103. geysir.paste:
  104. path: 'geysir/paste/{parent_entity_type}/{parent_entity_bundle}/{parent_entity_revision}/{field}/{field_wrapper_id}/{delta}/{position}/{paragraph_to_paste}/{paragraph_revision}/{js}'
  105. defaults:
  106. _title: 'Paste'
  107. _controller: '\Drupal\geysir\Controller\GeysirCutPasteController::paste'
  108. requirements:
  109. _permission: 'geysir manage paragraphs from front-end'
  110. js: 'nojs|ajax'
  111. options:
  112. _admin_route: TRUE
  113. parameters:
  114. paragraph_to_paste:
  115. type: 'entity:paragraph'
  116. paragraph_revision:
  117. type: 'entity_revision:paragraph'
  118. geysir.modal.add_form_first:
  119. path: 'geysir/modal/add/{parent_entity_type}/{parent_entity_bundle}/{parent_entity_revision}/{field}/{field_wrapper_id}/{delta}/{position}/{js}/{bundle}'
  120. defaults:
  121. _title: 'Add'
  122. _controller: '\Drupal\geysir\Controller\GeysirModalController::addFirst'
  123. bundle: NULL
  124. requirements:
  125. _permission: 'geysir manage paragraphs from front-end'
  126. js: 'nojs|ajax'
  127. options:
  128. _admin_route: TRUE