public function ConfigEntityRevisionsRevertFormBase::getCancelUrl in Config Entity Revisions 8.2
Same name and namespace in other branches
- 8 src/ConfigEntityRevisionsRevertFormBase.php \Drupal\config_entity_revisions\ConfigEntityRevisionsRevertFormBase::getCancelUrl()
- 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_revisionsCode
public function getCancelUrl() {
return new Url('entity.' . $this->configEntity
->getEntityTypeId() . '.revisions', [
$this->configEntity
->getEntityTypeId() => $this->configEntity
->id(),
]);
}