public function BundleItemInterface::setQuantity in Commerce Product Bundle 8
Sets the quantity for the bundle item.
Parameters
float $quantity: The bundle item quantity.
Return value
\Drupal\commerce_product_bundle\Entity\BundleItemInterface The called product bundle item entity.
1 method overrides BundleItemInterface::setQuantity()
- ProductBundleItem::setQuantity in src/
Entity/ ProductBundleItem.php - Sets the quantity for the bundle item.
File
- src/
Entity/ BundleItemInterface.php, line 108
Class
- BundleItemInterface
- Provides an interface for defining product bundle item entities.
Namespace
Drupal\commerce_product_bundle\EntityCode
public function setQuantity($quantity);