You are here

public function PriceListItem::getPriceListId in Commerce Pricelist 8

Same name and namespace in other branches
  1. 8.2 src/Entity/PriceListItem.php \Drupal\commerce_pricelist\Entity\PriceListItem::getPriceListId()

Gets the price list ID.

Return value

int The parent price list entity ID.

Overrides PriceListItemInterface::getPriceListId

File

src/Entity/PriceListItem.php, line 76

Class

PriceListItem
Defines the price list item entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

public function getPriceListId() {
  return $this
    ->get('price_list_id')->target_id;
}