function ConfirmFormTestForm::getCancelUrl

Same name in other branches
  1. 8.9.x core/modules/system/tests/modules/form_test/src/ConfirmFormTestForm.php \Drupal\form_test\ConfirmFormTestForm::getCancelUrl()
  2. 10 core/modules/system/tests/modules/form_test/src/ConfirmFormTestForm.php \Drupal\form_test\ConfirmFormTestForm::getCancelUrl()
  3. 11.x core/modules/system/tests/modules/form_test/src/ConfirmFormTestForm.php \Drupal\form_test\ConfirmFormTestForm::getCancelUrl()

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 33

Class

ConfirmFormTestForm
Provides a test confirmation form.

Namespace

Drupal\form_test

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.