public function BundleItemInterface::getVariations in Commerce Product Bundle 8
Gets the product variations limited by the bundle item or enabled on the product.
This method returns the variations, if any, specified (limited) by the bundle item, or fall back to all enabled variations of the referenced product.
Return value
\Drupal\commerce_product\Entity\ProductVariationInterface[] The product variations.
1 method overrides BundleItemInterface::getVariations()
- ProductBundleItem::getVariations in src/
Entity/ ProductBundleItem.php - Gets the product variations limited by the bundle item or enabled on the product.
File
- src/
Entity/ BundleItemInterface.php, line 221
Class
- BundleItemInterface
- Provides an interface for defining product bundle item entities.
Namespace
Drupal\commerce_product_bundle\EntityCode
public function getVariations();