8.3.x FormInterface.php public FormInterface::buildForm(array $form, FormStateInterface $form_state)
8.0.x FormInterface.php public FormInterface::buildForm(array $form, FormStateInterface $form_state)
8.1.x FormInterface.php public FormInterface::buildForm(array $form, FormStateInterface $form_state)
8.2.x FormInterface.php public FormInterface::buildForm(array $form, FormStateInterface $form_state)
8.4.x FormInterface.php public FormInterface::buildForm(array $form, FormStateInterface $form_state)

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.

161 methods override FormInterface::buildForm()
ActionAdminManageForm::buildForm in core/modules/action/src/Form/ActionAdminManageForm.php
Form constructor.
AddHandler::buildForm in core/modules/views_ui/src/Form/Ajax/AddHandler.php
Form constructor.
AjaxFormBlock::buildForm in core/modules/system/tests/modules/ajax_forms_test/src/Plugin/Block/AjaxFormBlock.php
Form constructor.
AjaxFormsTestCommandsForm::buildForm in core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestCommandsForm.php
.
AjaxFormsTestLazyLoadForm::buildForm in core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestLazyLoadForm.php
Form constructor.

... See full list

File

core/lib/Drupal/Core/Form/FormInterface.php, line 31

Class

FormInterface
Provides an interface for a Form.

Namespace

Drupal\Core\Form

Code

public function buildForm(array $form, FormStateInterface $form_state);