function FormInterface::submitForm
Same name in other branches
- 9 core/lib/Drupal/Core/Form/FormInterface.php \Drupal\Core\Form\FormInterface::submitForm()
- 8.9.x core/lib/Drupal/Core/Form/FormInterface.php \Drupal\Core\Form\FormInterface::submitForm()
- 10 core/lib/Drupal/Core/Form/FormInterface.php \Drupal\Core\Form\FormInterface::submitForm()
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
228 methods override FormInterface::submitForm()
- ActionAdminManageForm::submitForm in core/
modules/ action/ src/ Form/ ActionAdminManageForm.php - Form submission handler.
- ActionsTest::submitForm in core/
tests/ Drupal/ KernelTests/ Core/ Render/ Element/ ActionsTest.php - AddFormBase::submitForm in core/
modules/ media_library/ src/ Form/ AddFormBase.php - AjaxFormBlock::submitForm in core/
modules/ system/ tests/ modules/ ajax_forms_test/ src/ Plugin/ Block/ AjaxFormBlock.php - Form submission handler.
- AjaxFormsTestAjaxElementsForm::submitForm in core/
modules/ system/ tests/ modules/ ajax_forms_test/ src/ Form/ AjaxFormsTestAjaxElementsForm.php
File
-
core/
lib/ Drupal/ Core/ Form/ FormInterface.php, line 55
Class
- FormInterface
- Provides an interface for a Form.
Namespace
Drupal\Core\FormCode
public function submitForm(array &$form, FormStateInterface $form_state);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.