You are here

public function SectionListInterface::getSections in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/SectionListInterface.php \Drupal\layout_builder\SectionListInterface::getSections()
  2. 9 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.

3 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.
SimpleConfigSectionStorage::getSections in core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/SimpleConfigSectionStorage.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();