You are here

public function CartManager::emptyCart in Ubercart 8.4

Empties a cart.

Parameters

int $id: The ID of the cart to empty.

Overrides CartManagerInterface::emptyCart

1 call to CartManager::emptyCart()
CartManager::completeSale in uc_cart/src/CartManager.php
Completes a sale, including adjusting order status and creating an account.

File

uc_cart/src/CartManager.php, line 55

Class

CartManager
Provides the cart manager service.

Namespace

Drupal\uc_cart

Code

public function emptyCart($id = NULL) {
  $this
    ->get($id)
    ->emptyCart();
}