function SectionListInterface::getSections
Same name in other branches
- 9 core/modules/layout_builder/src/SectionListInterface.php \Drupal\layout_builder\SectionListInterface::getSections()
- 8.9.x 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()
- LayoutSectionItemList::getSections in core/
modules/ layout_builder/ src/ Field/ LayoutSectionItemList.php - Gets the layout sections.
- NavigationSectionStorage::getSections in core/
modules/ navigation/ src/ Plugin/ SectionStorage/ NavigationSectionStorage.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();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.