You are here

public function CartSessionInterface::addCartId in Commerce Core 8.2

Adds the given cart order ID to the session.

Parameters

int $cart_id: The cart order ID.

string $type: The cart session type.

1 method overrides CartSessionInterface::addCartId()
CartSession::addCartId in modules/cart/src/CartSession.php
Adds the given cart order ID to the session.

File

modules/cart/src/CartSessionInterface.php, line 41

Class

CartSessionInterface
Stores cart ids in the anonymous user's session.

Namespace

Drupal\commerce_cart

Code

public function addCartId($cart_id, $type = self::ACTIVE);