public function CartStorageSelect::addToCart in Basic cart 8
Same name and namespace in other branches
- 8.6 src/CartStorageSelect.php \Drupal\basic_cart\CartStorageSelect::addToCart()
- 8.0 src/CartStorageSelect.php \Drupal\basic_cart\CartStorageSelect::addToCart()
- 8.2 src/CartStorageSelect.php \Drupal\basic_cart\CartStorageSelect::addToCart()
- 8.3 src/CartStorageSelect.php \Drupal\basic_cart\CartStorageSelect::addToCart()
- 8.4 src/CartStorageSelect.php \Drupal\basic_cart\CartStorageSelect::addToCart()
- 8.5 src/CartStorageSelect.php \Drupal\basic_cart\CartStorageSelect::addToCart()
File
- src/
CartStorageSelect.php, line 40 - Contains \Drupal\basic_cart\Utility
Class
Namespace
Drupal\basic_cartCode
public function addToCart($id, $params = array()) {
return $this->cart
->addToCart($id, $params);
}