You are here

public function PriceListItem::getPriceListId in Commerce Pricelist 8.2

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

Gets the parent price list ID.

Return value

int The price list ID.

Overrides PriceListItemInterface::getPriceListId

2 calls to PriceListItem::getPriceListId()
PriceListItem::preSave in src/Entity/PriceListItem.php
Acts on an entity before the presave hook is invoked.
PriceListItem::urlRouteParameters in src/Entity/PriceListItem.php
Gets an array of placeholders for this entity.

File

src/Entity/PriceListItem.php, line 110

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;
}