public function CartProviderInterface::getCartIds in Commerce Core 8.2
Gets all cart order ids for the given user.
Parameters
\Drupal\Core\Session\AccountInterface|null $account: The user. If omitted, the current user is assumed.
\Drupal\commerce_store\Entity\StoreInterface|null $store: The store. If omitted, carts belonging to all stores are returned.
Return value
int[] A list of cart orders ids.
1 method overrides CartProviderInterface::getCartIds()
- CartProvider::getCartIds in modules/
cart/ src/ CartProvider.php - Gets all cart order ids for the given user.
File
- modules/
cart/ src/ CartProviderInterface.php, line 102
Class
- CartProviderInterface
- Creates and loads carts for anonymous and authenticated users.
Namespace
Drupal\commerce_cartCode
public function getCartIds(AccountInterface $account = NULL, StoreInterface $store = NULL);