You are here

public function OrderInterface::setItems in Commerce Core 8.2

Sets the order items.

Parameters

\Drupal\commerce_order\Entity\OrderItemInterface[] $order_items: The order items.

Return value

$this

1 method overrides OrderInterface::setItems()
Order::setItems in modules/order/src/Entity/Order.php
Sets the order items.

File

modules/order/src/Entity/OrderInterface.php, line 178

Class

OrderInterface
Defines the interface for orders.

Namespace

Drupal\commerce_order\Entity

Code

public function setItems(array $order_items);