You are here

public function ConfigEntityRevisionsRevertFormBase::getCancelUrl in Config Entity Revisions 8.2

Same name and namespace in other branches
  1. 8 src/ConfigEntityRevisionsRevertFormBase.php \Drupal\config_entity_revisions\ConfigEntityRevisionsRevertFormBase::getCancelUrl()
  2. 1.x src/ConfigEntityRevisionsRevertFormBase.php \Drupal\config_entity_revisions\ConfigEntityRevisionsRevertFormBase::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/ConfigEntityRevisionsRevertFormBase.php, line 152

Class

ConfigEntityRevisionsRevertFormBase
Class ConfigEntityRevisionsRevertFormBase.

Namespace

Drupal\config_entity_revisions

Code

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