public function SubFormState::setResponse in Authorization 8
Sets 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.
Parameters
\Symfony\Component\HttpFoundation\Response $response: The response to return.
Return value
$this
Overrides FormStateInterface::setResponse
File
- src/
Form/ SubFormState.php, line 158
Class
- SubFormState
- Represents the form state of a sub-form.
Namespace
Drupal\authorization\FormCode
public function setResponse(Response $response) {
$this->mainFormState
->setResponse($response);
return $this;
}