function FormInterface::submitForm

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Form/FormInterface.php \Drupal\Core\Form\FormInterface::submitForm()
  2. 10 core/lib/Drupal/Core/Form/FormInterface.php \Drupal\Core\Form\FormInterface::submitForm()
  3. 8.9.x 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.

40 methods override FormInterface::submitForm()
AddFormBase::submitForm in core/modules/media_library/src/Form/AddFormBase.php
Form submission handler.
AjaxFormsTestValidationForm::submitForm in core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestValidationForm.php
Form submission handler.
AjaxTestFocusFirstForm::submitForm in core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestFocusFirstForm.php
Form submission handler.
ConfigTranslationDeleteForm::submitForm in core/modules/config_translation/src/Form/ConfigTranslationDeleteForm.php
Form submission handler.
ConfigTranslationFormBase::submitForm in core/modules/config_translation/src/Form/ConfigTranslationFormBase.php
Form submission handler.

... See full list

File

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

Class

FormInterface
Provides an interface for a Form.

Namespace

Drupal\Core\Form

Code

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.