You are here

public function ProductVariationStorageInterface::loadEnabled in Commerce Core 8.2

Loads the enabled product variations for the given product.

Enabled variations are active variations that have been filtered through the FILTER_VARIATIONS event.

Parameters

\Drupal\commerce_product\Entity\ProductInterface $product: The product.

Return value

\Drupal\commerce_product\Entity\ProductVariationInterface[] The enabled product variations.

1 method overrides ProductVariationStorageInterface::loadEnabled()
ProductVariationStorage::loadEnabled in modules/product/src/ProductVariationStorage.php
Loads the enabled product variations for the given product.

File

modules/product/src/ProductVariationStorageInterface.php, line 53

Class

ProductVariationStorageInterface
Defines the interface for product variation storage.

Namespace

Drupal\commerce_product

Code

public function loadEnabled(ProductInterface $product);