public function LayoutBuilderController::layout in Drupal 9
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/Controller/LayoutBuilderController.php \Drupal\layout_builder\Controller\LayoutBuilderController::layout()
- 10 core/modules/layout_builder/src/Controller/LayoutBuilderController.php \Drupal\layout_builder\Controller\LayoutBuilderController::layout()
Renders the Layout UI.
Parameters
\Drupal\layout_builder\SectionStorageInterface $section_storage: The section storage.
Return value
array A render array.
File
- core/
modules/ layout_builder/ src/ Controller/ LayoutBuilderController.php, line 40
Class
- LayoutBuilderController
- Defines a controller to provide the Layout Builder admin UI.
Namespace
Drupal\layout_builder\ControllerCode
public function layout(SectionStorageInterface $section_storage) {
return [
'#type' => 'layout_builder',
'#section_storage' => $section_storage,
];
}