public function ProductVariationInterface::getAttributeValue in Commerce Core 8.2
Gets the attribute value for the given field name.
Parameters
string $field_name: The field name.
Return value
\Drupal\commerce_product\Entity\ProductAttributeValueInterface|null The attribute value, or NULL.
1 method overrides ProductVariationInterface::getAttributeValue()
- ProductVariation::getAttributeValue in modules/
product/ src/ Entity/ ProductVariation.php - Gets the attribute value for the given field name.
File
- modules/
product/ src/ Entity/ ProductVariationInterface.php, line 184
Class
- ProductVariationInterface
- Defines the interface for product variations.
Namespace
Drupal\commerce_product\EntityCode
public function getAttributeValue($field_name);