function Section::getLayout

Same name in other branches
  1. 9 core/modules/layout_builder/src/Section.php \Drupal\layout_builder\Section::getLayout()
  2. 10 core/modules/layout_builder/src/Section.php \Drupal\layout_builder\Section::getLayout()
  3. 11.x core/modules/layout_builder/src/Section.php \Drupal\layout_builder\Section::getLayout()

Gets the layout plugin for this section.

Return value

\Drupal\Core\Layout\LayoutInterface The layout plugin.

File

core/modules/layout_builder/src/Section.php, line 100

Class

Section
Provides a domain object for layout sections.

Namespace

Drupal\layout_builder

Code

public function getLayout() {
    return $this->layoutPluginManager()
        ->createInstance($this->getLayoutId(), $this->layoutSettings);
}

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