function SectionListInterface::removeSection

Same name in other branches
  1. 8.9.x 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()
  3. 11.x 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);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.