You are here

public function SectionStorageBase::getSections in Drupal 8

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

Gets the layout sections.

Return value

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

Overrides SectionListInterface::getSections

1 call to SectionStorageBase::getSections()
OverridesSectionStorage::isOverridden in core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
Indicates if overrides are in use.
1 method overrides SectionStorageBase::getSections()
TestStateBasedSectionStorage::getSections in core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/TestStateBasedSectionStorage.php
Gets the layout sections.

File

core/modules/layout_builder/src/Plugin/SectionStorage/SectionStorageBase.php, line 67

Class

SectionStorageBase
Provides a base class for Section Storage types.

Namespace

Drupal\layout_builder\Plugin\SectionStorage

Code

public function getSections() {
  return $this
    ->getSectionList()
    ->getSections();
}