function SectionListInterface::removeAllSections
Same name in other branches
- 9 core/modules/layout_builder/src/SectionListInterface.php \Drupal\layout_builder\SectionListInterface::removeAllSections()
- 10 core/modules/layout_builder/src/SectionListInterface.php \Drupal\layout_builder\SectionListInterface::removeAllSections()
- 11.x core/modules/layout_builder/src/SectionListInterface.php \Drupal\layout_builder\SectionListInterface::removeAllSections()
Removes all of the sections.
Parameters
bool $set_blank: (optional) The default implementation of section lists differentiates between a list that has never contained any sections and a list that has purposefully had all sections removed in order to remain blank. Passing TRUE will mirror ::removeSection() by tracking this as a blank list. Passing FALSE will reset the list as though it had never contained any sections at all. Defaults to FALSE.
Return value
$this
1 method overrides SectionListInterface::removeAllSections()
- SectionStorageBase::removeAllSections in core/
modules/ layout_builder/ src/ Plugin/ SectionStorage/ SectionStorageBase.php - Removes all of the sections.
File
-
core/
modules/ layout_builder/ src/ SectionListInterface.php, line 82
Class
- SectionListInterface
- Defines the interface for an object that stores layout sections.
Namespace
Drupal\layout_builderCode
public function removeAllSections($set_blank = FALSE);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.