public function PriceListItemInterface::setPurchasableEntity in Commerce Pricelist 8.2
Sets the purchasable entity.
Parameters
\Drupal\commerce\PurchasableEntityInterface $purchasable_entity: The purchasable entity.
Return value
$this
1 method overrides PriceListItemInterface::setPurchasableEntity()
- PriceListItem::setPurchasableEntity in src/
Entity/ PriceListItem.php - Sets the purchasable entity.
File
- src/
Entity/ PriceListItemInterface.php, line 48
Class
- PriceListItemInterface
- Defines the interface for price list items.
Namespace
Drupal\commerce_pricelist\EntityCode
public function setPurchasableEntity(PurchasableEntityInterface $purchasable_entity);