public function SectionStorageBase::appendSection in Drupal 8
Same name and namespace in other branches
- 9 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 81
Class
- SectionStorageBase
- Provides a base class for Section Storage types.
Namespace
Drupal\layout_builder\Plugin\SectionStorageCode
public function appendSection(Section $section) {
$this
->getSectionList()
->appendSection($section);
return $this;
}