private static function Utility::getStorage in Basic cart 8
Same name and namespace in other branches
- 8.6 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.4 src/Utility.php \Drupal\basic_cart\Utility::getStorage()
- 8.5 src/Utility.php \Drupal\basic_cart\Utility::getStorage()
5 calls to Utility::getStorage()
- Utility::addToCart in src/
Utility.php - 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 - Utility::removeFromCart in src/
Utility.php - Callback function for cart/remove/.
File
- src/
Utility.php, line 24 - Contains \Drupal\basic_cart\Utility
Class
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;
}