function RemoveBlockForm::handleSectionStorage

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

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

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