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