You are here

public function SectionStorageBase::getSection in Drupal 9

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

Gets a domain object for the layout section.

Parameters

int $delta: The delta of the section.

Return value

\Drupal\layout_builder\Section The layout section.

Overrides SectionListInterface::getSection

File

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

Class

SectionStorageBase
Provides a base class for Section Storage types.

Namespace

Drupal\layout_builder\Plugin\SectionStorage

Code

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