You are here

public function SubFormState::getResponse in Authorization 8

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

File

src/Form/SubFormState.php, line 166

Class

SubFormState
Represents the form state of a sub-form.

Namespace

Drupal\authorization\Form

Code

public function getResponse() : ?Response {
  return $this->mainFormState
    ->getResponse();
}