function ConfirmFormArrayPathTestForm::getCancelUrl

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

Overrides ConfirmFormTestForm::getCancelUrl

File

core/modules/system/tests/modules/form_test/src/ConfirmFormArrayPathTestForm.php, line 24

Class

ConfirmFormArrayPathTestForm
Provides a test confirmation form with a complex cancellation destination.

Namespace

Drupal\form_test

Code

public function getCancelUrl() {
    return new Url('form_test.route6', [], [
        'query' => [
            'destination' => 'admin/config',
        ],
    ]);
}

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