protected function RemoveBlockForm::handleSectionStorage in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/Form/RemoveBlockForm.php \Drupal\layout_builder\Form\RemoveBlockForm::handleSectionStorage()
- 9 core/modules/layout_builder/src/Form/RemoveBlockForm.php \Drupal\layout_builder\Form\RemoveBlockForm::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/ RemoveBlockForm.php, line 69
Class
- RemoveBlockForm
- Provides a form to confirm the removal of a block.
Namespace
Drupal\layout_builder\FormCode
protected function handleSectionStorage(SectionStorageInterface $section_storage, FormStateInterface $form_state) {
$section_storage
->getSection($this->delta)
->removeComponent($this->uuid);
}