public function PriceListItem::setPurchasableEntityId in Commerce Pricelist 8.2
Sets the purchasable entity ID.
Parameters
string $purchasable_entity_id: The purchasable entity ID.
Return value
$this
Overrides PriceListItemInterface::setPurchasableEntityId
File
- src/
Entity/ PriceListItem.php, line 138
Class
- PriceListItem
- Defines the price list item entity.
Namespace
Drupal\commerce_pricelist\EntityCode
public function setPurchasableEntityId($purchasable_entity_id) {
return $this
->set('purchasable_entity', $purchasable_entity_id);
}