You are here

public function ProductVariationInterface::getProductId in Commerce Core 8.2

Gets the parent product ID.

Return value

int|null The product ID, or null.

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

File

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

Class

ProductVariationInterface
Defines the interface for product variations.

Namespace

Drupal\commerce_product\Entity

Code

public function getProductId();