public function DataPolicyRevisionDeleteForm::getCancelUrl in Data Policy 8
Returns the route to go to if the user cancels the action.
Return value
\Drupal\Core\Url A URL object.
Overrides ConfirmFormInterface::getCancelUrl
1 call to DataPolicyRevisionDeleteForm::getCancelUrl()
- DataPolicyRevisionDeleteForm::submitForm in src/
Form/ DataPolicyRevisionDeleteForm.php - Form submission handler.
File
- src/
Form/ DataPolicyRevisionDeleteForm.php, line 95
Class
- DataPolicyRevisionDeleteForm
- Provides a form for deleting a Data policy revision.
Namespace
Drupal\data_policy\FormCode
public function getCancelUrl() {
return new Url('entity.data_policy.version_history', [
'entity_id' => $this->revision
->id(),
]);
}