You are here

public function PriceListItem::getQuantity in Commerce Pricelist 8.2

Same name and namespace in other branches
  1. 8 src/Entity/PriceListItem.php \Drupal\commerce_pricelist\Entity\PriceListItem::getQuantity()

Gets the quantity.

Represents a quantity tier. For example, if the price list has items for 10, 50, and 100 products, and the customer orders 20, they will get the price for 10.

Return value

string The quantity.

Overrides PriceListItemInterface::getQuantity

File

src/Entity/PriceListItem.php, line 145

Class

PriceListItem
Defines the price list item entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

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