public function BundleItemInterface::getUnitPrice in Commerce Product Bundle 8
Gets the price of one unit of the referenced product variations.
Return value
\Drupal\commerce_price\Price|null The unit price or NULL.
1 method overrides BundleItemInterface::getUnitPrice()
- ProductBundleItem::getUnitPrice in src/
Entity/ ProductBundleItem.php - Gets the price of one unit of the referenced product variations.
File
- src/
Entity/ BundleItemInterface.php, line 319
Class
- BundleItemInterface
- Provides an interface for defining product bundle item entities.
Namespace
Drupal\commerce_product_bundle\EntityCode
public function getUnitPrice();