public function ProductType::allowsMultipleVariations in Commerce Core 8.2
Gets whether products of this type can have multiple variations.
Return value
bool TRUE if products of this type can have multiple variations, FALSE otherwise.
Overrides ProductTypeInterface::allowsMultipleVariations
File
- modules/
product/ src/ Entity/ ProductType.php, line 126
Class
- ProductType
- Defines the product type entity class.
Namespace
Drupal\commerce_product\EntityCode
public function allowsMultipleVariations() {
return $this->multipleVariations;
}