W3cubDocs

/Drupal 8

protected property FormState::$response

Used when a form needs to return some kind of a \Symfony\Component\HttpFoundation\Response object, e.g., a \Symfony\Component\HttpFoundation\BinaryFileResponse when triggering a file download. If you use self::setRedirect() or self::setRedirectUrl(), it will be used to build a \Symfony\Component\HttpFoundation\RedirectResponse and will populate this key.

Type: \Symfony\Component\HttpFoundation\Response|null

File

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

Class

FormState
Stores information about the state of a form.

Namespace

Drupal\Core\Form

Code

protected $response;

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Form!FormState.php/property/FormState::response/8.1.x