public static function Utility::emptyCart in Basic cart 8.4
Same name and namespace in other branches
- 8.6 src/Utility.php \Drupal\basic_cart\Utility::emptyCart()
- 8 src/Utility.php \Drupal\basic_cart\Utility::emptyCart()
- 8.0 src/Utility.php \Drupal\basic_cart\Utility::emptyCart()
- 8.2 src/Utility.php \Drupal\basic_cart\Utility::emptyCart()
- 8.3 src/Utility.php \Drupal\basic_cart\Utility::emptyCart()
- 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_cartCode
public static function emptyCart() {
$storage = static::getStorage();
$storage
->emptyCart();
}