You are here

interface PriceListRepositoryInterface in Commerce Pricelist 8.2

Hierarchy

Expanded class hierarchy of PriceListRepositoryInterface

All classes that implement PriceListRepositoryInterface

File

src/PriceListRepositoryInterface.php, line 8

Namespace

Drupal\commerce_pricelist
View source
interface PriceListRepositoryInterface {

  /**
   * Loads the price list item for the given purchasable entity.
   *
   * @param \Drupal\commerce\PurchasableEntityInterface $entity
   *   The purchasable entity.
   * @param int $quantity
   *   The quantity.
   * @param \Drupal\commerce\Context $context
   *   The context.
   *
   * @return \Drupal\commerce_pricelist\Entity\PriceListItemInterface|null
   *   The price list item, NULL if no matching price list item could be found.
   */
  public function loadItem(PurchasableEntityInterface $entity, $quantity, Context $context);

  /**
   * Loads the price list items for the given purchasable entity.
   *
   * @param \Drupal\commerce\PurchasableEntityInterface $entity
   *   The purchasable entity.
   * @param \Drupal\commerce\Context $context
   *   The context.
   *
   * @return \Drupal\commerce_pricelist\Entity\PriceListItemInterface[]
   *   The price list items.
   */
  public function loadItems(PurchasableEntityInterface $entity, Context $context);

}

Members

Namesort descending Modifiers Type Description Overrides
PriceListRepositoryInterface::loadItem public function Loads the price list item for the given purchasable entity. 1
PriceListRepositoryInterface::loadItems public function Loads the price list items for the given purchasable entity. 1