You are here

public function PackerInterface::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.

2 methods override PackerInterface::pack()
DefaultPacker::pack in src/Packer/DefaultPacker.php
Packs the given order.
TestPacker::pack in tests/modules/commerce_shipping_test/src/Packer/TestPacker.php
Packs the given order.

File

src/Packer/PackerInterface.php, line 46

Class

PackerInterface
Creates one or more shipments for a given order.

Namespace

Drupal\commerce_shipping\Packer

Code

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