You are here

public function SectionListInterface::insertSection in Drupal 8

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

Code

public function insertSection($delta, Section $section);