You are here

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

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

Class

EasyEmailRevisionRevertForm
Provides a form for reverting 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(),
  ]);
}