You are here

public function PriceListItem::getPurchasedEntityId in Commerce Pricelist 8

Gets the purchased entity ID.

Return value

int The purchased entity ID.

Overrides PriceListItemInterface::getPurchasedEntityId

File

src/Entity/PriceListItem.php, line 180

Class

PriceListItem
Defines the price list item entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

public function getPurchasedEntityId() {
  return $this
    ->get('purchased_entity')->target_id;
}