You are here

public function SectionListInterface::getSections in Drupal 8

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

Gets the layout sections.

Return value

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

5 methods override SectionListInterface::getSections()
LayoutBuilderEntityViewDisplay::getSections in core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
Gets the layout sections.
LayoutSectionItemList::getSections in core/modules/layout_builder/src/Field/LayoutSectionItemList.php
Gets the layout sections.
SectionStorageBase::getSections in core/modules/layout_builder/src/Plugin/SectionStorage/SectionStorageBase.php
Gets the layout sections.
SimpleConfigSectionStorage::getSections in core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/SimpleConfigSectionStorage.php
Gets the layout sections.
TestSectionList::getSections in core/modules/layout_builder/tests/src/Kernel/SectionListTraitTest.php
Gets the layout sections.

File

core/modules/layout_builder/src/SectionListInterface.php, line 18

Class

SectionListInterface
Defines the interface for an object that stores layout sections.

Namespace

Drupal\layout_builder

Code

public function getSections();