You are here

public function PriceListItem::setPriceListId in Commerce Pricelist 8

Sets the parent price list ID.

Parameters

string $price_list_id: The parent price list ID.

Return value

$this

Overrides PriceListItemInterface::setPriceListId

File

src/Entity/PriceListItem.php, line 83

Class

PriceListItem
Defines the price list item entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

public function setPriceListId($price_list_id) {
  return $this
    ->set('price_list_id', $price_list_id);
}