You are here

public function FormStateDecoratorBase::setRedirectUrl in Markdown 8.2

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/BcSupport/FormStateDecoratorBase.php, line 609

Class

FormStateDecoratorBase
Decorates another form state.

Namespace

Drupal\markdown\BcSupport

Code

public function setRedirectUrl(Url $url) {
  $this->decoratedFormState
    ->setRedirectUrl($url);
  return $this;
}