You are here

public function PackageDeleteForm::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 PackageDeleteForm::getCancelUrl()
PackageDeleteForm::submitForm in shipping/uc_fulfillment/src/Form/PackageDeleteForm.php
Form submission handler.

File

shipping/uc_fulfillment/src/Form/PackageDeleteForm.php, line 68

Class

PackageDeleteForm
Decides to unpackage products.

Namespace

Drupal\uc_fulfillment\Form

Code

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