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