public function ProductType::setInjectVariationFields in Commerce Core 8.2
Sets whether variation fields should be injected into the rendered product.
Parameters
bool $inject: Whether variation fields should be injected into the rendered product.
Return value
$this
Overrides ProductTypeInterface::setInjectVariationFields
File
- modules/
product/ src/ Entity/ ProductType.php, line 148
Class
- ProductType
- Defines the product type entity class.
Namespace
Drupal\commerce_product\EntityCode
public function setInjectVariationFields($inject) {
$this->injectVariationFields = (bool) $inject;
return $this;
}