You are here

public function CartStorageSelect::addToCart in Basic cart 8

Same name and namespace in other branches
  1. 8.6 src/CartStorageSelect.php \Drupal\basic_cart\CartStorageSelect::addToCart()
  2. 8.0 src/CartStorageSelect.php \Drupal\basic_cart\CartStorageSelect::addToCart()
  3. 8.2 src/CartStorageSelect.php \Drupal\basic_cart\CartStorageSelect::addToCart()
  4. 8.3 src/CartStorageSelect.php \Drupal\basic_cart\CartStorageSelect::addToCart()
  5. 8.4 src/CartStorageSelect.php \Drupal\basic_cart\CartStorageSelect::addToCart()
  6. 8.5 src/CartStorageSelect.php \Drupal\basic_cart\CartStorageSelect::addToCart()

File

src/CartStorageSelect.php, line 40
Contains \Drupal\basic_cart\Utility

Class

CartStorageSelect

Namespace

Drupal\basic_cart

Code

public function addToCart($id, $params = array()) {
  return $this->cart
    ->addToCart($id, $params);
}