public function BundleItemInterface::setUnitPrice in Commerce Product Bundle 8
Sets the price of one unit of the referenced product variations.
Parameters
\Drupal\commerce_price\Price $unit_price: The unit price.
Return value
\Drupal\commerce_product_bundle\Entity\BundleItemInterface The called product bundle item entity.
1 method overrides BundleItemInterface::setUnitPrice()
- ProductBundleItem::setUnitPrice in src/
Entity/ ProductBundleItem.php - Sets the price of one unit of the referenced product variations.
File
- src/
Entity/ BundleItemInterface.php, line 310
Class
- BundleItemInterface
- Provides an interface for defining product bundle item entities.
Namespace
Drupal\commerce_product_bundle\EntityCode
public function setUnitPrice(Price $unit_price);