You are here

public function LayoutBuilderEntityViewDisplay::getSections in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php \Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay::getSections()

Gets the layout sections.

Return value

\Drupal\layout_builder\Section[] A sequentially and numerically keyed array of section objects.

Overrides SectionListInterface::getSections

3 calls to LayoutBuilderEntityViewDisplay::getSections()
LayoutBuilderEntityViewDisplay::calculateDependencies in core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
Calculates dependencies and stores them in the dependency property.
LayoutBuilderEntityViewDisplay::getSectionComponentForFieldName in core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
Gets the component for a given field name if any.
LayoutBuilderEntityViewDisplay::onDependencyRemoval in core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
Informs the entity that entities it depends on will be deleted.

File

core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php, line 103

Class

LayoutBuilderEntityViewDisplay
Provides an entity view display entity that has a layout.

Namespace

Drupal\layout_builder\Entity

Code

public function getSections() {
  return $this
    ->getThirdPartySetting('layout_builder', 'sections', []);
}