public function PriceListItem::hasPurchasedEntity in Commerce Pricelist 8
Gets whether the price list item has a purchased entity.
Return value
bool TRUE if the price list item has a purchased entity, FALSE otherwise.
Overrides PriceListItemInterface::hasPurchasedEntity
File
- src/
Entity/ PriceListItem.php, line 166
Class
- PriceListItem
- Defines the price list item entity.
Namespace
Drupal\commerce_pricelist\EntityCode
public function hasPurchasedEntity() {
return !$this
->get('purchased_entity')
->isEmpty();
}