You are here

public function SectionStorageBase::appendSection 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::appendSection()

Appends a new section to the end of the list.

Parameters

\Drupal\layout_builder\Section $section: The section to append.

Return value

$this

Overrides SectionListInterface::appendSection

File

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

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;
}