You are here

public function EventRevisionDeleteForm::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/EventRevisionDeleteForm.php, line 82

Class

EventRevisionDeleteForm
Provides a form for deleting a Event revision.

Namespace

Drupal\event\Form

Code

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