function FormAjaxException::getFormState

Same name in other branches
  1. 9 core/lib/Drupal/Core/Form/FormAjaxException.php \Drupal\Core\Form\FormAjaxException::getFormState()
  2. 8.9.x core/lib/Drupal/Core/Form/FormAjaxException.php \Drupal\Core\Form\FormAjaxException::getFormState()
  3. 11.x core/lib/Drupal/Core/Form/FormAjaxException.php \Drupal\Core\Form\FormAjaxException::getFormState()

Gets the form state.

Return value

\Drupal\Core\Form\FormStateInterface The current state of the form.

File

core/lib/Drupal/Core/Form/FormAjaxException.php, line 60

Class

FormAjaxException
Custom exception to break out of AJAX form processing.

Namespace

Drupal\Core\Form

Code

public function getFormState() {
    return $this->formState;
}

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