You are here

public function CartManagerInterface::get in Ubercart 8.4

Loads a cart object.

Parameters

string|null $id: (optional) The ID of the cart to load, or NULL to load the current cart.

Return value

\Drupal\uc_cart\CartInterface An object representing the cart.

1 method overrides CartManagerInterface::get()
CartManager::get in uc_cart/src/CartManager.php
Loads a cart object.

File

uc_cart/src/CartManagerInterface.php, line 21

Class

CartManagerInterface
Defines a common interface for cart managers.

Namespace

Drupal\uc_cart

Code

public function get($id = NULL);