public function ShipmentStorage::loadMultipleByOrder in Commerce Shipping 8.2
Loads all shipments for the given order.
Parameters
\Drupal\commerce_order\Entity\OrderInterface $order: The order.
Return value
\Drupal\commerce_shipping\Entity\ShipmentInterface[] The shipments.
Overrides ShipmentStorageInterface::loadMultipleByOrder
File
- src/
ShipmentStorage.php, line 13
Class
Namespace
Drupal\commerce_shippingCode
public function loadMultipleByOrder(OrderInterface $order) {
return $this
->loadByProperties([
'order_id' => $order
->id(),
]);
}