3 namespace Drupal\layout_builder\Form;
5 use Drupal\Core\Form\FormStateInterface;
6 use Drupal\layout_builder\SectionStorageInterface;
9 * Provides a form to confirm the removal of a section.
13 class RemoveSectionForm extends LayoutRebuildConfirmFormBase {
18 public function getFormId() {
19 return 'layout_builder_remove_section';
25 public function getQuestion() {
26 return $this->t('Are you sure you want to remove this section?');
32 public function getConfirmText() {
33 return $this->t('Remove');
39 protected function handleSectionStorage(SectionStorageInterface $section_storage, FormStateInterface $form_state) {
40 $section_storage->removeSection($this->delta);