function FormInterface::buildForm
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Form/FormInterface.php \Drupal\Core\Form\FormInterface::buildForm()
- 10 core/lib/Drupal/Core/Form/FormInterface.php \Drupal\Core\Form\FormInterface::buildForm()
- 9 core/lib/Drupal/Core/Form/FormInterface.php \Drupal\Core\Form\FormInterface::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.
14 methods override FormInterface::buildForm()
- AddHandler::buildForm in core/
modules/ views_ui/ src/ Form/ Ajax/ AddHandler.php - Form constructor.
- AjaxCssForm::buildForm in core/
modules/ ckeditor/ tests/ modules/ src/ Form/ AjaxCssForm.php - Form constructor.
- AjaxFormsTestCommandsForm::buildForm in core/
modules/ system/ tests/ modules/ ajax_forms_test/ src/ Form/ AjaxFormsTestCommandsForm.php - .
- ConfigureSectionForm::buildForm in core/
modules/ layout_builder/ src/ Form/ ConfigureSectionForm.php - Form constructor.
- FormTestButtonClassForm::buildForm in core/
modules/ system/ tests/ modules/ form_test/ src/ Form/ FormTestButtonClassForm.php - Form constructor.
File
-
core/
lib/ Drupal/ Core/ Form/ FormInterface.php, line 35
Class
- FormInterface
- Provides an interface for a Form.
Namespace
Drupal\Core\FormCode
public function buildForm(array $form, FormStateInterface $form_state);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.