You are here

public function BundleItemOrderItem::getQuantity in Commerce Product Bundle 8

Gets the bundle item order item quantity.

Return value

string The order item quantity

Overrides BundleItemOrderItemInterface::getQuantity

1 call to BundleItemOrderItem::getQuantity()
BundleItemOrderItem::recalculateTotalPrice in src/Entity/BundleItemOrderItem.php
Recalculates the bundle item order item total price.

File

src/Entity/BundleItemOrderItem.php, line 129

Class

BundleItemOrderItem
Defines the Bundle Item Order Item entity.

Namespace

Drupal\commerce_product_bundle\Entity

Code

public function getQuantity() {
  return (string) $this
    ->get('quantity')->value;
}