You are here

public function PriceListItem::getPriceList in Commerce Pricelist 8.2

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

Gets the parent price list.

Return value

\Drupal\commerce_pricelist\Entity\PriceListInterface The price list.

Overrides PriceListItemInterface::getPriceList

File

src/Entity/PriceListItem.php, line 103

Class

PriceListItem
Defines the price list item entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

public function getPriceList() {
  return $this
    ->get('price_list_id')->entity;
}