function RemoveSectionForm::handleSectionStorage

Same name in other branches
  1. 9 core/modules/layout_builder/src/Form/RemoveSectionForm.php \Drupal\layout_builder\Form\RemoveSectionForm::handleSectionStorage()
  2. 8.9.x core/modules/layout_builder/src/Form/RemoveSectionForm.php \Drupal\layout_builder\Form\RemoveSectionForm::handleSectionStorage()
  3. 11.x core/modules/layout_builder/src/Form/RemoveSectionForm.php \Drupal\layout_builder\Form\RemoveSectionForm::handleSectionStorage()

Overrides LayoutRebuildConfirmFormBase::handleSectionStorage

File

core/modules/layout_builder/src/Form/RemoveSectionForm.php, line 46

Class

RemoveSectionForm
Provides a form to confirm the removal of a section.

Namespace

Drupal\layout_builder\Form

Code

protected function handleSectionStorage(SectionStorageInterface $section_storage, FormStateInterface $form_state) {
    $section_storage->removeSection($this->delta);
}

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