You are here

public function ConfigEntityRevisionsDeleteFormBase::getCancelUrl in Config Entity Revisions 8

Same name and namespace in other branches
  1. 8.2 src/ConfigEntityRevisionsDeleteFormBase.php \Drupal\config_entity_revisions\ConfigEntityRevisionsDeleteFormBase::getCancelUrl()
  2. 1.x src/ConfigEntityRevisionsDeleteFormBase.php \Drupal\config_entity_revisions\ConfigEntityRevisionsDeleteFormBase::getCancelUrl()

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/ConfigEntityRevisionsDeleteFormBase.php, line 107

Class

ConfigEntityRevisionsDeleteFormBase
Provides a form for reverting a config entity revision.

Namespace

Drupal\config_entity_revisions

Code

public function getCancelUrl() {
  return new Url("entity." . $this->config_entity
    ->getEntityTypeId() . ".revisions", [
    $this->config_entity
      ->getEntityTypeId() => $this->config_entity
      ->id(),
  ]);
}