You are here

public function SendDefaultForm::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 SendDefaultForm::getCancelUrl()
SendDefaultForm::submitForm in src/Form/SendDefaultForm.php
Form submission handler.

File

src/Form/SendDefaultForm.php, line 46

Class

SendDefaultForm
Class SendDefaultForm.

Namespace

Drupal\mail_safety\Form

Code

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