public function SectionListInterface::insertSection in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/SectionListInterface.php \Drupal\layout_builder\SectionListInterface::insertSection()
- 9 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
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);