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

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.

173 methods override FormInterface::submitForm()
ActionAdminManageForm::submitForm in core/modules/action/src/Form/ActionAdminManageForm.php
Form submission handler.
AjaxFormBlock::submitForm in core/modules/system/tests/modules/ajax_forms_test/src/Plugin/Block/AjaxFormBlock.php
Form submission handler.
AjaxFormsTestCommandsForm::submitForm in core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestCommandsForm.php
.
AjaxFormsTestLazyLoadForm::submitForm in core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestLazyLoadForm.php
Form submission handler.
AjaxFormsTestSimpleForm::submitForm in core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestSimpleForm.php
Form submission handler.

... See full list

File

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

Class

FormInterface
Provides an interface for a Form.

Namespace

Drupal\Core\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state);