function ConfirmFormArrayPathTestForm::getCancelUrl

Overrides ConfirmFormTestForm::getCancelUrl

File

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

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.