You are here

public function FormState::getResponse in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::getResponse()

Gets a response for this form.

If a response is set, it will be used during processing and returned directly. The form will not be rebuilt or redirected.

Return value

\Symfony\Component\HttpFoundation\Response|null The response to return, or NULL.

Overrides FormStateInterface::getResponse

1 call to FormState::getResponse()
FormState::getCacheableArray in core/lib/Drupal/Core/Form/FormState.php
Returns an array representation of the cacheable portion of the form state.

File

core/lib/Drupal/Core/Form/FormState.php, line 994

Class

FormState
Stores information about the state of a form.

Namespace

Drupal\Core\Form

Code

public function getResponse() {
  return $this->response;
}