You are here

public function SectionStorageBase::appendSection in Drupal 10

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

File

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

Class

SectionStorageBase
Provides a base class for Section Storage types.

Namespace

Drupal\layout_builder\Plugin\SectionStorage

Code

public function appendSection(Section $section) {
  $this
    ->getSectionList()
    ->appendSection($section);
  return $this;
}