public function ProductType::setVariationTypeId in Commerce Core 8.2
Sets the product type's matching variation type ID.
Parameters
string $variation_type_id: The variation type ID.
Return value
$this
Overrides ProductTypeInterface::setVariationTypeId
File
- modules/
product/ src/ Entity/ ProductType.php, line 118
Class
- ProductType
- Defines the product type entity class.
Namespace
Drupal\commerce_product\EntityCode
public function setVariationTypeId($variation_type_id) {
$this->variationType = $variation_type_id;
return $this;
}