You are here

public function LayoutBuilderController::layout in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Controller/LayoutBuilderController.php \Drupal\layout_builder\Controller\LayoutBuilderController::layout()
  2. 9 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 42

Class

LayoutBuilderController
Defines a controller to provide the Layout Builder admin UI.

Namespace

Drupal\layout_builder\Controller

Code

public function layout(SectionStorageInterface $section_storage) {
  return [
    '#type' => 'layout_builder',
    '#section_storage' => $section_storage,
  ];
}