You are here

public static function Utility::emptyCart in Basic cart 8.0

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.2 src/Utility.php \Drupal\basic_cart\Utility::emptyCart()
  4. 8.3 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

File

src/Utility.php, line 76
Contains \Drupal\basic_cart\Utility

Class

Utility

Namespace

Drupal\basic_cart

Code

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