You are here

public function ProductVariationInterface::getAttributeValueId in Commerce Core 8.2

Gets the attribute value id for the given field name.

Parameters

string $field_name: The field name.

Return value

int|null The attribute value ID, or NULL.

1 method overrides ProductVariationInterface::getAttributeValueId()
ProductVariation::getAttributeValueId in modules/product/src/Entity/ProductVariation.php
Gets the attribute value id for the given field name.

File

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

Class

ProductVariationInterface
Defines the interface for product variations.

Namespace

Drupal\commerce_product\Entity

Code

public function getAttributeValueId($field_name);