interface PriceListRepositoryInterface in Commerce Pricelist 8.2
Hierarchy
- interface \Drupal\commerce_pricelist\PriceListRepositoryInterface
Expanded class hierarchy of PriceListRepositoryInterface
All classes that implement PriceListRepositoryInterface
File
- src/
PriceListRepositoryInterface.php, line 8
Namespace
Drupal\commerce_pricelistView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PriceListRepositoryInterface:: |
public | function | Loads the price list item for the given purchasable entity. | 1 |
PriceListRepositoryInterface:: |
public | function | Loads the price list items for the given purchasable entity. | 1 |