You are here

public function MerciLineItemRevisionRevertForm::getCancelUrl in MERCI (Manage Equipment Reservations, Checkout and Inventory) 8.2

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/merci_line_item/src/Form/MerciLineItemRevisionRevertForm.php, line 82

Class

MerciLineItemRevisionRevertForm
Provides a form for reverting a Merci Line Item revision.

Namespace

Drupal\merci_line_item\Form

Code

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