You are here

ShippingMethodStorageInterface.php in Commerce Shipping 8.2

File

src/ShippingMethodStorageInterface.php
View source
<?php

namespace Drupal\commerce_shipping;

use Drupal\commerce_shipping\Entity\ShipmentInterface;
use Drupal\Core\Entity\ContentEntityStorageInterface;

/**
 * Defines the interface for shipping method storage.
 */
interface ShippingMethodStorageInterface extends ContentEntityStorageInterface {

  /**
   * Loads all eligible shipping methods for the given shipment.
   *
   * @param \Drupal\commerce_shipping\Entity\ShipmentInterface $shipment
   *   The shipment.
   *
   * @return \Drupal\commerce_shipping\Entity\ShippingMethodInterface[]
   *   The shipping methods.
   */
  public function loadMultipleForShipment(ShipmentInterface $shipment);

}

Interfaces

Namesort descending Description
ShippingMethodStorageInterface Defines the interface for shipping method storage.