You are here

public function EasyEmailRevisionDeleteForm::getCancelUrl in Easy Email 2.0.x

Same name and namespace in other branches
  1. 8 src/Form/EasyEmailRevisionDeleteForm.php \Drupal\easy_email\Form\EasyEmailRevisionDeleteForm::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/EasyEmailRevisionDeleteForm.php, line 82

Class

EasyEmailRevisionDeleteForm
Provides a form for deleting a Email revision.

Namespace

Drupal\easy_email\Form

Code

public function getCancelUrl() {
  return new Url('entity.easy_email.version_history', [
    'easy_email' => $this->revision
      ->id(),
  ]);
}