public function ProductType::setMultipleVariations in Commerce Core 8.2
Sets whether products of this type can have multiple variations.
Parameters
bool $multiple_variations: Whether products of this type can have multiple variations.
Return value
$this
Overrides ProductTypeInterface::setMultipleVariations
File
- modules/
product/ src/ Entity/ ProductType.php, line 133
Class
- ProductType
- Defines the product type entity class.
Namespace
Drupal\commerce_product\EntityCode
public function setMultipleVariations($multiple_variations) {
$this->multipleVariations = $multiple_variations;
return $this;
}