You are here

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

Class

HeartbeatStreamRevisionRevertForm
Provides a form for reverting a Heartbeat stream revision.

Namespace

Drupal\heartbeat\Form

Code

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