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