public function ConfigEntityRevisionsDeleteFormBase::getCancelUrl in Config Entity Revisions 8.2
Same name and namespace in other branches
- 8 src/ConfigEntityRevisionsDeleteFormBase.php \Drupal\config_entity_revisions\ConfigEntityRevisionsDeleteFormBase::getCancelUrl()
- 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 104
Class
- ConfigEntityRevisionsDeleteFormBase
- Provides a form for reverting a config entity revision.
Namespace
Drupal\config_entity_revisionsCode
public function getCancelUrl() {
return new Url("entity." . $this->config_entity
->getEntityTypeId() . ".revisions", [
$this->config_entity
->getEntityTypeId() => $this->config_entity
->id(),
]);
}