public function CartSession::getCartIds in Commerce Core 8.2
Gets all cart order ids from the session.
Parameters
string $type: The cart session type.
Return value
int[] A list of cart orders ids.
Overrides CartSessionInterface::getCartIds
File
- modules/
cart/ src/ CartSession.php, line 32
Class
- CartSession
- Default implementation of the cart session.
Namespace
Drupal\commerce_cartCode
public function getCartIds($type = self::ACTIVE) {
$key = $this
->getSessionKey($type);
return $this->session
->get($key, []);
}