public function PriceListItem::getPurchasableEntityId in Commerce Pricelist 8.2
Gets the purchasable entity ID.
Return value
int The purchasable entity ID.
Overrides PriceListItemInterface::getPurchasableEntityId
File
- src/
Entity/ PriceListItem.php, line 131
Class
- PriceListItem
- Defines the price list item entity.
Namespace
Drupal\commerce_pricelist\EntityCode
public function getPurchasableEntityId() {
return $this
->get('purchasable_entity')->target_id;
}