You are here

public function PriceListRepositoryInterface::loadItem in Commerce Pricelist 8.2

Loads the price list item for the given purchasable entity.

Parameters

\Drupal\commerce\PurchasableEntityInterface $entity: The purchasable entity.

int $quantity: The quantity.

\Drupal\commerce\Context $context: The context.

Return value

\Drupal\commerce_pricelist\Entity\PriceListItemInterface|null The price list item, NULL if no matching price list item could be found.

1 method overrides PriceListRepositoryInterface::loadItem()
PriceListRepository::loadItem in src/PriceListRepository.php
Loads the price list item for the given purchasable entity.

File

src/PriceListRepositoryInterface.php, line 23

Class

PriceListRepositoryInterface

Namespace

Drupal\commerce_pricelist

Code

public function loadItem(PurchasableEntityInterface $entity, $quantity, Context $context);