You are here

public function PaymentDeleteForm::getCancelUrl in Ubercart 8.4

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 PaymentDeleteForm::getCancelUrl()
PaymentDeleteForm::submitForm in payment/uc_payment/src/Form/PaymentDeleteForm.php
Form submission handler.

File

payment/uc_payment/src/Form/PaymentDeleteForm.php, line 41

Class

PaymentDeleteForm
Confirmation form to delete a payment from an order.

Namespace

Drupal\uc_payment\Form

Code

public function getCancelUrl() {
  return Url::fromRoute('uc_payments.order_payments', [
    'uc_order' => $this->payment->order_id->target_id,
  ]);
}