You are here

public function BundleItemInterface::getCurrentVariation in Commerce Product Bundle 8

Gets the currently selected variation, or the default variation.

Return value

\Drupal\commerce_product\Entity\ProductVariationInterface The variation.

1 method overrides BundleItemInterface::getCurrentVariation()
ProductBundleItem::getCurrentVariation in src/Entity/ProductBundleItem.php
@todo Figure out how to get the currently selected variation without holding state in this object.

File

src/Entity/BundleItemInterface.php, line 284

Class

BundleItemInterface
Provides an interface for defining product bundle item entities.

Namespace

Drupal\commerce_product_bundle\Entity

Code

public function getCurrentVariation();