public function SubFormState::setRedirectUrl in Authorization 8
Sets the redirect URL for the form.
Parameters
\Drupal\Core\Url $url: The URL to redirect to.
Return value
$this
Overrides FormStateInterface::setRedirectUrl
See also
\Drupal\Core\Form\FormSubmitterInterface::redirectForm()
File
- src/
Form/ SubFormState.php, line 181
Class
- SubFormState
- Represents the form state of a sub-form.
Namespace
Drupal\authorization\FormCode
public function setRedirectUrl(Url $url) {
$this->mainFormState
->setRedirectUrl($url);
return $this;
}