public function FormInterface::buildForm in Drupal 10
Same name and namespace in other branches
- 8 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.
170 methods override FormInterface::buildForm()
- ActionAdminManageForm::buildForm in core/
modules/ action/ src/ Form/ ActionAdminManageForm.php - Form constructor.
- AddBlockForm::buildForm in core/
modules/ layout_builder/ src/ Form/ AddBlockForm.php - Builds the form for the block.
- AddFormBase::buildForm in core/
modules/ media_library/ src/ Form/ AddFormBase.php - Form constructor.
- AjaxCssForm::buildForm in core/
modules/ ckeditor/ tests/ modules/ src/ Form/ AjaxCssForm.php - Form constructor.
- AjaxFormBlock::buildForm in core/
modules/ system/ tests/ modules/ ajax_forms_test/ src/ Plugin/ Block/ AjaxFormBlock.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);