You are here

public function ClearForm::getCancelUrl in Mail Safety 8

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

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

1 call to ClearForm::getCancelUrl()
ClearForm::submitForm in src/Form/ClearForm.php
Form submission handler.

File

src/Form/ClearForm.php, line 34

Class

ClearForm
Class ClearForm.

Namespace

Drupal\mail_safety\Form

Code

public function getCancelUrl() {
  return new Url('mail_safety.dashboard');
}