public function ProductType::shouldInjectVariationFields in Commerce Core 8.2
Gets whether variation fields should be injected into the rendered product.
Return value
bool TRUE if the variation fields should be injected into the rendered product, FALSE otherwise.
Overrides ProductTypeInterface::shouldInjectVariationFields
File
- modules/
product/ src/ Entity/ ProductType.php, line 141
Class
- ProductType
- Defines the product type entity class.
Namespace
Drupal\commerce_product\EntityCode
public function shouldInjectVariationFields() {
return $this->injectVariationFields;
}