public function SupportTicketRevisionRevertForm::getCancelUrl in Support Ticketing System 8
Returns the route to go to if the user cancels the action.
Return value
\Drupal\Core\Url A URL object.
Overrides ConfirmFormInterface::getCancelUrl
File
- modules/
support_ticket/ src/ Form/ SupportTicketRevisionRevertForm.php, line 72 - Contains \Drupal\support_ticket\Form\SupportTicketRevisionRevertForm.
Class
- SupportTicketRevisionRevertForm
- Provides a form for reverting a support ticket revision.
Namespace
Drupal\support_ticket\FormCode
public function getCancelUrl() {
return new Url('entity.support_ticket.version_history', array(
'support_ticket' => $this->revision
->id(),
));
}