You are here

public function SectionListInterface::removeSection in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/SectionListInterface.php \Drupal\layout_builder\SectionListInterface::removeSection()
  2. 10 core/modules/layout_builder/src/SectionListInterface.php \Drupal\layout_builder\SectionListInterface::removeSection()

Removes the section at the given delta.

As sections are stored sequentially and numerically this will re-key every subsequent section, shifting them forward.

Parameters

int $delta: The delta of the section.

Return value

$this

1 method overrides SectionListInterface::removeSection()
SectionStorageBase::removeSection in core/modules/layout_builder/src/Plugin/SectionStorage/SectionStorageBase.php
Removes the section at the given delta.

File

core/modules/layout_builder/src/SectionListInterface.php, line 67

Class

SectionListInterface
Defines the interface for an object that stores layout sections.

Namespace

Drupal\layout_builder

Code

public function removeSection($delta);