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
Namespace
Drupal\commerce_pricelistCode
public function loadItem(PurchasableEntityInterface $entity, $quantity, Context $context);