public function PetRevisionRevertForm::getCancelUrl in Previewable email templates 8.3
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/
Form/ PetRevisionRevertForm.php, line 82
Class
- PetRevisionRevertForm
- Provides a form for reverting a Pet revision.
Namespace
Drupal\pet\FormCode
public function getCancelUrl() {
return new Url('entity.pet.version_history', [
'pet' => $this->revision
->id(),
]);
}