You are here

protected function RemoveBlockForm::handleSectionStorage in Drupal 8

Same name and namespace in other branches
  1. 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\Form

Code

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