interface CartInterface in Basic cart 8
Same name and namespace in other branches
- 8.6 src/CartInterface.php \Drupal\basic_cart\CartInterface
- 8.0 src/CartInterface.php \Drupal\basic_cart\CartInterface
- 8.2 src/CartInterface.php \Drupal\basic_cart\CartInterface
- 8.3 src/CartInterface.php \Drupal\basic_cart\CartInterface
- 8.4 src/CartInterface.php \Drupal\basic_cart\CartInterface
- 8.5 src/CartInterface.php \Drupal\basic_cart\CartInterface
Cart interface definition for basic_cart plugins.
Hierarchy
- interface \Drupal\basic_cart\CartInterface
Expanded class hierarchy of CartInterface
All classes that implement CartInterface
2 files declare their use of CartInterface
- CartSession.php in src/
CartSession.php - CartTable.php in src/
CartTable.php
File
- src/
CartInterface.php, line 14 - Contains \Drupal\basic_cart\CartInterface.
Namespace
Drupal\basic_cartView source
interface CartInterface {
public function getCart($nid = NULL);
public function removeFromCart($nid);
public function emptyCart();
public function addToCart($id, $params = array());
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CartInterface:: |
public | function | 2 | |
CartInterface:: |
public | function | 2 | |
CartInterface:: |
public | function | 2 | |
CartInterface:: |
public | function | 2 |