public function SectionListInterface::insertSection in Drupal 9
Same name and namespace in other branches
- 8 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);