public function DefaultPacker::applies in Commerce Shipping 8.2
Determines whether the packer applies to the given order.
Parameters
\Drupal\commerce_order\Entity\OrderInterface $order: The order.
\Drupal\profile\Entity\ProfileInterface $shipping_profile: The shipping profile.
Return value
bool TRUE if the packer applies to the given order, FALSE otherwise.
Overrides PackerInterface::applies
File
- src/
Packer/ DefaultPacker.php, line 46
Class
- DefaultPacker
- Creates a single shipment per order.
Namespace
Drupal\commerce_shipping\PackerCode
public function applies(OrderInterface $order, ProfileInterface $shipping_profile) {
return TRUE;
}