You are here

public function ShippingOrderManagerInterface::pack in Commerce Shipping 8.2

Packs the given order into shipments.

Parameters

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

\Drupal\profile\Entity\ProfileInterface $profile: The shipping profile.

Return value

\Drupal\commerce_shipping\\Entity\ShipmentInterface[] The unsaved shipments.

1 method overrides ShippingOrderManagerInterface::pack()
ShippingOrderManager::pack in src/ShippingOrderManager.php
Packs the given order into shipments.

File

src/ShippingOrderManagerInterface.php, line 72

Class

ShippingOrderManagerInterface

Namespace

Drupal\commerce_shipping

Code

public function pack(OrderInterface $order, ProfileInterface $profile = NULL);