You are here

public function CartManagerInterface::updateOrderItem in Commerce Core 8.2

Updates the given order item.

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::updateOrderItem()
CartManager::updateOrderItem in modules/cart/src/CartManager.php
Updates the given order item.

File

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

Class

CartManagerInterface
Manages the cart order and its order items.

Namespace

Drupal\commerce_cart

Code

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