You are here

public function ProductVariationInterface::getProduct in Commerce Core 8.2

Gets the parent product.

Return value

ProductInterface|null The product entity, or null.

1 method overrides ProductVariationInterface::getProduct()
ProductVariation::getProduct in modules/product/src/Entity/ProductVariation.php
Gets the parent product.

File

modules/product/src/Entity/ProductVariationInterface.php, line 22

Class

ProductVariationInterface
Defines the interface for product variations.

Namespace

Drupal\commerce_product\Entity

Code

public function getProduct();