public function ShipmentInterface::setItems in Commerce Shipping 8.2
Sets the shipment items.
Parameters
\Drupal\commerce_shipping\ShipmentItem[] $shipment_items: The shipment items.
Return value
$this
1 method overrides ShipmentInterface::setItems()
- Shipment::setItems in src/
Entity/ Shipment.php - Sets the shipment items.
File
- src/
Entity/ ShipmentInterface.php, line 175
Class
- ShipmentInterface
- Defines the interface for shipments.
Namespace
Drupal\commerce_shipping\EntityCode
public function setItems(array $shipment_items);