You are here

public function ProductInterface::getDefaultVariation in Commerce Core 8.2

Gets the default variation.

Return value

\Drupal\commerce_product\Entity\ProductVariationInterface|null The default variation, or NULL if none found.

1 method overrides ProductInterface::getDefaultVariation()
Product::getDefaultVariation in modules/product/src/Entity/Product.php
Gets the default variation.

File

modules/product/src/Entity/ProductInterface.php, line 126

Class

ProductInterface
Defines the interface for products.

Namespace

Drupal\commerce_product\Entity

Code

public function getDefaultVariation();