You are here

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

Class

HeartbeatRevisionDeleteForm
Provides a form for deleting a Heartbeat revision.

Namespace

Drupal\heartbeat\Form

Code

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