public function PriceListItem::setPriceList in Commerce Pricelist 8
Sets the parent price list.
Parameters
\Drupal\commerce_pricelist\Entity\PriceListInterface $price_list: The price list entity.
Return value
$this
Overrides PriceListItemInterface::setPriceList
File
- src/
Entity/ PriceListItem.php, line 69
Class
- PriceListItem
- Defines the price list item entity.
Namespace
Drupal\commerce_pricelist\EntityCode
public function setPriceList(PriceListInterface $price_list) {
return $this
->set('price_list_id', $price_list);
}