You are here

ShipmentStorage.php in Commerce Shipping 8.2

File

src/ShipmentStorage.php
View source
<?php

namespace Drupal\commerce_shipping;

use Drupal\commerce\CommerceContentEntityStorage;
use Drupal\commerce_order\Entity\OrderInterface;
class ShipmentStorage extends CommerceContentEntityStorage implements ShipmentStorageInterface {

  /**
   * {@inheritdoc}
   */
  public function loadMultipleByOrder(OrderInterface $order) {
    return $this
      ->loadByProperties([
      'order_id' => $order
        ->id(),
    ]);
  }

}

Classes

Namesort descending Description
ShipmentStorage