You are here

public function CartManagerInterface::removeOrderItem in Commerce Core 8.2

Removes the given order item from the cart order.

Parameters

\Drupal\commerce_order\Entity\OrderInterface $cart: The cart order.

\Drupal\commerce_order\Entity\OrderItemInterface $order_item: The order item.

bool $save_cart: Whether the cart should be saved after the operation.

1 method overrides CartManagerInterface::removeOrderItem()
CartManager::removeOrderItem in modules/cart/src/CartManager.php
Removes the given order item from the cart order.

File

modules/cart/src/CartManagerInterface.php, line 95

Class

CartManagerInterface
Manages the cart order and its order items.

Namespace

Drupal\commerce_cart

Code

public function removeOrderItem(OrderInterface $cart, OrderItemInterface $order_item, $save_cart = TRUE);