You are here

public function EventRevisionRevertForm::getCancelUrl in Event 8

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/EventRevisionRevertForm.php, line 83

Class

EventRevisionRevertForm
Provides a form for reverting a Event revision.

Namespace

Drupal\event\Form

Code

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