You are here

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

File

src/Form/SendOriginalForm.php, line 44

Class

SendOriginalForm
Class SendOriginalForm.

Namespace

Drupal\mail_safety\Form

Code

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