public function RemoveBlockForm::buildForm in Drupal 9
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/Form/RemoveBlockForm.php \Drupal\layout_builder\Form\RemoveBlockForm::buildForm()
- 10 core/modules/layout_builder/src/Form/RemoveBlockForm.php \Drupal\layout_builder\Form\RemoveBlockForm::buildForm()
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides LayoutRebuildConfirmFormBase::buildForm
File
- core/
modules/ layout_builder/ src/ Form/ RemoveBlockForm.php, line 60
Class
- RemoveBlockForm
- Provides a form to confirm the removal of a block.
Namespace
Drupal\layout_builder\FormCode
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);
}