protected function RemoveSectionForm::handleSectionStorage in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/Form/RemoveSectionForm.php \Drupal\layout_builder\Form\RemoveSectionForm::handleSectionStorage()
- 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\FormCode
protected function handleSectionStorage(SectionStorageInterface $section_storage, FormStateInterface $form_state) {
$section_storage
->removeSection($this->delta);
}