You are here

public function StyleguideConfirmForm::getCancelUrl in Style Guide 8

Same name and namespace in other branches
  1. 2.x src/Form/StyleguideConfirmForm.php \Drupal\styleguide\Form\StyleguideConfirmForm::getCancelUrl()

Returns the route to go to if the user cancels the action.

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

File

src/Form/StyleguideConfirmForm.php, line 30

Class

StyleguideConfirmForm
The Styleguide confirm form example.

Namespace

Drupal\styleguide\Form

Code

public function getCancelUrl() {
  return new Url('styleguide.page');
}