public function SectionStorageTrait::appendSection in Drupal 8
3 calls to SectionStorageTrait::appendSection()
- LayoutBuilderEntityViewDisplay::getDefaultSection in core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php - Gets a default section.
- SectionStorageTrait::addBlankSection in core/
modules/ layout_builder/ src/ SectionStorage/ SectionStorageTrait.php - Adds a blank section to the list.
- SectionStorageTrait::insertSection in core/
modules/ layout_builder/ src/ SectionStorage/ SectionStorageTrait.php
File
- core/
modules/ layout_builder/ src/ SectionStorage/ SectionStorageTrait.php, line 67
Class
- SectionStorageTrait
- Provides a trait for storing sections on an object.
Namespace
Drupal\layout_builder\SectionStorageCode
public function appendSection(Section $section) {
$delta = $this
->count();
$this
->setSection($delta, $section);
return $this;
}