private static function Utility::getStorage in Basic cart 8.4
Same name and namespace in other branches
- 8.6 src/Utility.php \Drupal\basic_cart\Utility::getStorage()
- 8 src/Utility.php \Drupal\basic_cart\Utility::getStorage()
- 8.0 src/Utility.php \Drupal\basic_cart\Utility::getStorage()
- 8.2 src/Utility.php \Drupal\basic_cart\Utility::getStorage()
- 8.3 src/Utility.php \Drupal\basic_cart\Utility::getStorage()
- 8.5 src/Utility.php \Drupal\basic_cart\Utility::getStorage()
Get Storage session or table.
5 calls to Utility::getStorage()
- Utility::addToCart in src/
Utility.php - Add to cart.
- Utility::emptyCart in src/
Utility.php - Shopping cart reset.
- Utility::getCart in src/
Utility.php - Function for shopping cart retrieval.
- Utility::loggedInActionCart in src/
Utility.php - Login Sync.
- Utility::removeFromCart in src/
Utility.php - Callback function for cart/remove/.
File
- src/
Utility.php, line 24
Class
- Utility
- Utilty functions for basic cart.
Namespace
Drupal\basic_cartCode
private static function getStorage() {
$user = \Drupal::currentUser();
$config = self::cartSettings();
$storage = new CartStorageSelect($user, $config
->get('use_cart_table'));
return $storage;
}