You are here

public function EmptyCartForm::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

File

uc_cart/src/Form/EmptyCartForm.php, line 59

Class

EmptyCartForm
Confirm that the customer wants to empty their cart.

Namespace

Drupal\uc_cart\Form

Code

public function getCancelUrl() {
  return Url::fromRoute('uc_cart.cart');
}