You are here

public function PackerManagerInterface::pack in Commerce Shipping 8.2

Packs the given order.

Parameters

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

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

Return value

\Drupal\commerce_shipping\ProposedShipment[] The proposed shipments.

1 method overrides PackerManagerInterface::pack()
PackerManager::pack in src/PackerManager.php
Packs the given order.

File

src/PackerManagerInterface.php, line 44

Class

PackerManagerInterface
Runs the added packers one by one until one of them returns a result.

Namespace

Drupal\commerce_shipping

Code

public function pack(OrderInterface $order, ProfileInterface $shipping_profile);