You are here

public function PriceListItem::setPurchasedEntityId in Commerce Pricelist 8

Sets the price list item purchased entity ID.

Parameters

string $purchased_entity_id: The purchased entity ID.

Return value

$this

Overrides PriceListItemInterface::setPurchasedEntityId

File

src/Entity/PriceListItem.php, line 187

Class

PriceListItem
Defines the price list item entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

public function setPurchasedEntityId($purchased_entity_id) {
  return $this
    ->set('purchased_entity', $purchased_entity_id);
}