You are here

protected function RemoveSectionForm::handleSectionStorage in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Form/RemoveSectionForm.php \Drupal\layout_builder\Form\RemoveSectionForm::handleSectionStorage()
  2. 9 core/modules/layout_builder/src/Form/RemoveSectionForm.php \Drupal\layout_builder\Form\RemoveSectionForm::handleSectionStorage()

Performs any actions on the section storage before saving.

Parameters

\Drupal\layout_builder\SectionStorageInterface $section_storage: The section storage.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

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);
}