public function ConfigEntityRevisionsRevertFormBase::getCancelUrl in Config Entity Revisions 1.x
Same name and namespace in other branches
- 8.2 src/ConfigEntityRevisionsRevertFormBase.php \Drupal\config_entity_revisions\ConfigEntityRevisionsRevertFormBase::getCancelUrl()
- 8 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 149
Class
- ConfigEntityRevisionsRevertFormBase
- Provides a form for reverting / publishing a 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(),
]);
}