You are here

public function ConfirmationForm::getCancelUrl in Auto Purge Users 8

Same name and namespace in other branches
  1. 8.3 src/Form/ConfirmationForm.php \Drupal\purge_users\Form\ConfirmationForm::getCancelUrl()
  2. 8.2 src/Form/ConfirmationForm.php \Drupal\purge_users\Form\ConfirmationForm::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/ConfirmationForm.php, line 34

Class

ConfirmationForm
Class ConfirmationForm.

Namespace

Drupal\purge_users\Form

Code

public function getCancelUrl() {
  return new Url('purge_users.settings');
}