You are here

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\Entity

Code

public function getUnitPrice();