You are here

public function ProductBundleItem::getQuantity in Commerce Product Bundle 8

Gets the bundle item quantity.

Return value

float The bundle item quantity

Overrides BundleItemInterface::getQuantity

File

src/Entity/ProductBundleItem.php, line 230

Class

ProductBundleItem
Defines the product bundle item entity.

Namespace

Drupal\commerce_product_bundle\Entity

Code

public function getQuantity() {
  if (isset($this->activeQuantity)) {
    return $this->activeQuantity;
  }
  return $this
    ->getMinimumQuantity();
}