You are here

public function PriceListItem::getPriceList in Commerce Pricelist 8

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

Gets the price list.

Return value

$this

Overrides PriceListItemInterface::getPriceList

File

src/Entity/PriceListItem.php, line 62

Class

PriceListItem
Defines the price list item entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

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