public function SubFormState::setRedirect in Authorization 8
Sets the redirect for the form.
Parameters
string $route_name: The name of the route
array $route_parameters: (optional) An associative array of parameter names and values.
array $options: (optional) An associative array of additional options containing the same values accepted from \Drupal\Core\Url::fromUri() for $options.
Return value
$this
Overrides FormStateInterface::setRedirect
See also
\Drupal\Core\Form\FormSubmitterInterface::redirectForm()
File
- src/
Form/ SubFormState.php, line 173
Class
- SubFormState
- Represents the form state of a sub-form.
Namespace
Drupal\authorization\FormCode
public function setRedirect($route_name, array $route_parameters = [], array $options = []) {
$this->mainFormState
->setRedirect($route_name, $route_parameters, $options);
return $this;
}