You are here

public static function Utility::emptyCart in Basic cart 8.3

Same name and namespace in other branches
  1. 8.6 src/Utility.php \Drupal\basic_cart\Utility::emptyCart()
  2. 8 src/Utility.php \Drupal\basic_cart\Utility::emptyCart()
  3. 8.0 src/Utility.php \Drupal\basic_cart\Utility::emptyCart()
  4. 8.2 src/Utility.php \Drupal\basic_cart\Utility::emptyCart()
  5. 8.4 src/Utility.php \Drupal\basic_cart\Utility::emptyCart()
  6. 8.5 src/Utility.php \Drupal\basic_cart\Utility::emptyCart()

Shopping cart reset.

1 call to Utility::emptyCart()
basic_cart_empty_cart in ./basic_cart.inc
Empty cart data.

File

src/Utility.php, line 84

Class

Utility
Utilty functions for basic cart.

Namespace

Drupal\basic_cart

Code

public static function emptyCart() {
  $storage = static::getStorage();
  $storage
    ->emptyCart();
}