function SectionListTrait::appendSection
Same name in other branches
- 9 core/modules/layout_builder/src/SectionListTrait.php \Drupal\layout_builder\SectionListTrait::appendSection()
- 10 core/modules/layout_builder/src/SectionListTrait.php \Drupal\layout_builder\SectionListTrait::appendSection()
3 calls to SectionListTrait::appendSection()
- LayoutBuilderEntityViewDisplay::getDefaultSection in core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php - Gets a default section.
- SectionListTrait::addBlankSection in core/
modules/ layout_builder/ src/ SectionListTrait.php - Adds a blank section to the list.
- SectionListTrait::insertSection in core/
modules/ layout_builder/ src/ SectionListTrait.php
File
-
core/
modules/ layout_builder/ src/ SectionListTrait.php, line 67
Class
- SectionListTrait
- Provides a trait for maintaining a list of sections.
Namespace
Drupal\layout_builderCode
public function appendSection(Section $section) {
$delta = $this->count();
$this->setSection($delta, $section);
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.