function SectionListInterface::insertSection
Same name in other branches
- 9 core/modules/layout_builder/src/SectionListInterface.php \Drupal\layout_builder\SectionListInterface::insertSection()
- 10 core/modules/layout_builder/src/SectionListInterface.php \Drupal\layout_builder\SectionListInterface::insertSection()
- 11.x core/modules/layout_builder/src/SectionListInterface.php \Drupal\layout_builder\SectionListInterface::insertSection()
Inserts a new section at a given delta.
If a section exists at the given index, the section at that position and others after it are shifted backward.
Parameters
int $delta: The delta of the section.
\Drupal\layout_builder\Section $section: The section to insert.
Return value
$this
1 method overrides SectionListInterface::insertSection()
- SectionStorageBase::insertSection in core/
modules/ layout_builder/ src/ Plugin/ SectionStorage/ SectionStorageBase.php - Inserts a new section at a given delta.
File
-
core/
modules/ layout_builder/ src/ SectionListInterface.php, line 54
Class
- SectionListInterface
- Defines the interface for an object that stores layout sections.
Namespace
Drupal\layout_builderCode
public function insertSection($delta, Section $section);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.