layout_builder.routing.yml

Same filename in other branches
  1. 8.9.x core/modules/layout_builder/layout_builder.routing.yml
  2. 10 core/modules/layout_builder/layout_builder.routing.yml
  3. 11.x core/modules/layout_builder/layout_builder.routing.yml
core/modules/layout_builder/layout_builder.routing.yml
7 string references to YAML keys in layout_builder.routing.yml
ChooseBlockController::build in core/modules/layout_builder/src/Controller/ChooseBlockController.php
Provides the UI for choosing a new block.
ChooseBlockController::getBlockLinks in core/modules/layout_builder/src/Controller/ChooseBlockController.php
Gets a render array of block links.
ChooseBlockController::inlineBlockList in core/modules/layout_builder/src/Controller/ChooseBlockController.php
Provides the UI for choosing a new inline block.
ChooseSectionController::build in core/modules/layout_builder/src/Controller/ChooseSectionController.php
Choose a layout plugin to add as a section.
LayoutBuilder::buildAddSectionLink in core/modules/layout_builder/src/Element/LayoutBuilder.php
Builds a link to add a new section at a given delta.

... See full list

File

core/modules/layout_builder/layout_builder.routing.yml

View source
  1. layout_builder.choose_section:
  2. path: '/layout_builder/choose/section/{section_storage_type}/{section_storage}/{delta}'
  3. defaults:
  4. _controller: '\Drupal\layout_builder\Controller\ChooseSectionController::build'
  5. _title: 'Choose a layout for this section'
  6. requirements:
  7. _layout_builder_access: 'view'
  8. options:
  9. _admin_route: TRUE
  10. parameters:
  11. section_storage:
  12. layout_builder_tempstore: TRUE
  13. layout_builder.add_section:
  14. path: '/layout_builder/add/section/{section_storage_type}/{section_storage}/{delta}/{plugin_id}'
  15. defaults:
  16. _controller: '\Drupal\layout_builder\Controller\AddSectionController::build'
  17. requirements:
  18. _layout_builder_access: 'view'
  19. options:
  20. _admin_route: TRUE
  21. parameters:
  22. section_storage:
  23. layout_builder_tempstore: TRUE
  24. layout_builder.configure_section:
  25. path: '/layout_builder/configure/section/{section_storage_type}/{section_storage}/{delta}/{plugin_id}'
  26. defaults:
  27. _title: 'Configure section'
  28. _form: '\Drupal\layout_builder\Form\ConfigureSectionForm'
  29. # Adding a new section requires a plugin_id, while configuring an existing
  30. # section does not.
  31. plugin_id: null
  32. requirements:
  33. _layout_builder_access: 'view'
  34. options:
  35. _admin_route: TRUE
  36. parameters:
  37. section_storage:
  38. layout_builder_tempstore: TRUE
  39. layout_builder.remove_section:
  40. path: '/layout_builder/remove/section/{section_storage_type}/{section_storage}/{delta}'
  41. defaults:
  42. _form: '\Drupal\layout_builder\Form\RemoveSectionForm'
  43. requirements:
  44. _layout_builder_access: 'view'
  45. options:
  46. _admin_route: TRUE
  47. parameters:
  48. section_storage:
  49. layout_builder_tempstore: TRUE
  50. layout_builder.choose_block:
  51. path: '/layout_builder/choose/block/{section_storage_type}/{section_storage}/{delta}/{region}'
  52. defaults:
  53. _controller: '\Drupal\layout_builder\Controller\ChooseBlockController::build'
  54. _title: 'Choose a block'
  55. requirements:
  56. _layout_builder_access: 'view'
  57. options:
  58. _admin_route: TRUE
  59. parameters:
  60. section_storage:
  61. layout_builder_tempstore: TRUE
  62. layout_builder.add_block:
  63. path: '/layout_builder/add/block/{section_storage_type}/{section_storage}/{delta}/{region}/{plugin_id}'
  64. defaults:
  65. _form: '\Drupal\layout_builder\Form\AddBlockForm'
  66. _title: 'Configure block'
  67. requirements:
  68. _layout_builder_access: 'view'
  69. options:
  70. _admin_route: TRUE
  71. parameters:
  72. section_storage:
  73. layout_builder_tempstore: TRUE
  74. layout_builder.choose_inline_block:
  75. path: '/layout_builder/choose/inline-block/{section_storage_type}/{section_storage}/{delta}/{region}'
  76. defaults:
  77. _controller: '\Drupal\layout_builder\Controller\ChooseBlockController::inlineBlockList'
  78. _title: 'Add a new custom block'
  79. requirements:
  80. _layout_builder_access: 'view'
  81. options:
  82. _admin_route: TRUE
  83. parameters:
  84. section_storage:
  85. layout_builder_tempstore: TRUE
  86. layout_builder.update_block:
  87. path: '/layout_builder/update/block/{section_storage_type}/{section_storage}/{delta}/{region}/{uuid}'
  88. defaults:
  89. _form: '\Drupal\layout_builder\Form\UpdateBlockForm'
  90. _title: 'Configure block'
  91. requirements:
  92. _layout_builder_access: 'view'
  93. options:
  94. _admin_route: TRUE
  95. parameters:
  96. section_storage:
  97. layout_builder_tempstore: TRUE
  98. layout_builder.move_block_form:
  99. path: '/layout_builder/move/block/{section_storage_type}/{section_storage}/{delta}/{region}/{uuid}'
  100. defaults:
  101. _title_callback: '\Drupal\layout_builder\Form\MoveBlockForm::title'
  102. _form: '\Drupal\layout_builder\Form\MoveBlockForm'
  103. requirements:
  104. _layout_builder_access: 'view'
  105. options:
  106. _admin_route: TRUE
  107. parameters:
  108. section_storage:
  109. layout_builder_tempstore: TRUE
  110. layout_builder.remove_block:
  111. path: '/layout_builder/remove/block/{section_storage_type}/{section_storage}/{delta}/{region}/{uuid}'
  112. defaults:
  113. _form: '\Drupal\layout_builder\Form\RemoveBlockForm'
  114. requirements:
  115. _layout_builder_access: 'view'
  116. options:
  117. _admin_route: TRUE
  118. parameters:
  119. section_storage:
  120. layout_builder_tempstore: TRUE
  121. layout_builder.move_block:
  122. path: '/layout_builder/move/block/{section_storage_type}/{section_storage}/{delta_from}/{delta_to}/{region_to}/{block_uuid}/{preceding_block_uuid}'
  123. defaults:
  124. _controller: '\Drupal\layout_builder\Controller\MoveBlockController::build'
  125. delta_from: null
  126. delta_to: null
  127. region_from: null
  128. region_to: null
  129. block_uuid: null
  130. preceding_block_uuid: null
  131. requirements:
  132. _layout_builder_access: 'view'
  133. options:
  134. _admin_route: TRUE
  135. parameters:
  136. section_storage:
  137. layout_builder_tempstore: TRUE

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.