You are here

public function OrderUnlockForm::getCancelUrl in Commerce Core 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/order/src/Form/OrderUnlockForm.php, line 32

Class

OrderUnlockForm
Provides a confirmation form for unlocking orders.

Namespace

Drupal\commerce_order\Form

Code

public function getCancelUrl() {
  return $this->entity
    ->toUrl('collection');
}