t('Are you sure you want to remove this block?'); } /** * {@inheritdoc} */ public function getConfirmText() { return $this->t('Remove'); } /** * {@inheritdoc} */ public function getFormId() { return 'layout_builder_remove_block'; } /** * {@inheritdoc} */ public function buildForm(array $form, FormStateInterface $form_state, SectionStorageInterface $section_storage = NULL, $delta = NULL, $region = NULL, $uuid = NULL) { $this->region = $region; $this->uuid = $uuid; return parent::buildForm($form, $form_state, $section_storage, $delta); } /** * {@inheritdoc} */ protected function handleSectionStorage(SectionStorageInterface $section_storage, FormStateInterface $form_state) { $section_storage->getSection($this->delta)->removeComponent($this->uuid); } }