Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LayoutBuilderController.php

function 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,
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal