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

Breadcrumb

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

function LayoutBuilder::preRender

Pre-render callback: Renders the Layout Builder UI.

File

core/modules/layout_builder/src/Element/LayoutBuilder.php, line 84

Class

LayoutBuilder
Defines a render element for building the Layout Builder UI.

Namespace

Drupal\layout_builder\Element

Code

public function preRender($element) {
    if ($element['#section_storage'] instanceof SectionStorageInterface) {
        $element['layout_builder'] = $this->layout($element['#section_storage']);
    }
    return $element;
}

API Navigation

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