You are here

public function HeartbeatRevisionRevertForm::getCancelUrl in Heartbeat 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/HeartbeatRevisionRevertForm.php, line 82

Class

HeartbeatRevisionRevertForm
Provides a form for reverting a Heartbeat revision.

Namespace

Drupal\heartbeat\Form

Code

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