You are here

public function SupportTicketRevisionDeleteForm::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/SupportTicketRevisionDeleteForm.php, line 96
Contains \Drupal\support_ticket\Form\SupportTicketRevisionDeleteForm.

Class

SupportTicketRevisionDeleteForm
Provides a form for reverting a support ticket revision.

Namespace

Drupal\support_ticket\Form

Code

public function getCancelUrl() {
  return new Url('entity.support_ticket.version_history', array(
    'support_ticket' => $this->revision
      ->id(),
  ));
}