function FormSubmitterInterface::doSubmitForm

Same name in other branches
  1. 9 core/lib/Drupal/Core/Form/FormSubmitterInterface.php \Drupal\Core\Form\FormSubmitterInterface::doSubmitForm()
  2. 10 core/lib/Drupal/Core/Form/FormSubmitterInterface.php \Drupal\Core\Form\FormSubmitterInterface::doSubmitForm()
  3. 11.x core/lib/Drupal/Core/Form/FormSubmitterInterface.php \Drupal\Core\Form\FormSubmitterInterface::doSubmitForm()

Handles the submitted form, executing callbacks and processing responses.

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

null|\Symfony\Component\HttpFoundation\Response If a response was set by a submit handler, or if the form needs to redirect, a Response object will be returned.

2 methods override FormSubmitterInterface::doSubmitForm()
FormBuilder::doSubmitForm in core/lib/Drupal/Core/Form/FormBuilder.php
Handles the submitted form, executing callbacks and processing responses.
FormSubmitter::doSubmitForm in core/lib/Drupal/Core/Form/FormSubmitter.php
Handles the submitted form, executing callbacks and processing responses.

File

core/lib/Drupal/Core/Form/FormSubmitterInterface.php, line 22

Class

FormSubmitterInterface
Provides an interface for processing form submissions.

Namespace

Drupal\Core\Form

Code

public function doSubmitForm(&$form, FormStateInterface &$form_state);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.