You are here

protected function PaymentProcess::buildCancelUrl in Commerce Core 8.2

Builds the URL to the "cancel" page.

Return value

\Drupal\Core\Url The "cancel" page URL.

File

modules/payment/src/Plugin/Commerce/CheckoutPane/PaymentProcess.php, line 270

Class

PaymentProcess
Provides the payment process pane.

Namespace

Drupal\commerce_payment\Plugin\Commerce\CheckoutPane

Code

protected function buildCancelUrl() {
  return Url::fromRoute('commerce_payment.checkout.cancel', [
    'commerce_order' => $this->order
      ->id(),
    'step' => 'payment',
  ], [
    'absolute' => TRUE,
  ]);
}