You are here

public function ConfirmFormTestForm::getCancelUrl in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/tests/modules/form_test/src/ConfirmFormTestForm.php \Drupal\form_test\ConfirmFormTestForm::getCancelUrl()

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

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

1 method overrides ConfirmFormTestForm::getCancelUrl()
ConfirmFormArrayPathTestForm::getCancelUrl in core/modules/system/tests/modules/form_test/src/ConfirmFormArrayPathTestForm.php
Returns the route to go to if the user cancels the action.

File

core/modules/system/tests/modules/form_test/src/ConfirmFormTestForm.php, line 36
Contains \Drupal\form_test\ConfirmFormTestForm.

Class

ConfirmFormTestForm
Provides a test confirmation form.

Namespace

Drupal\form_test

Code

public function getCancelUrl() {
  return new Url('form_test.route8');
}