public function ProductTypeInterface::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
1 method overrides ProductTypeInterface::setInjectVariationFields()
- ProductType::setInjectVariationFields in modules/
product/ src/ Entity/ ProductType.php - Sets whether variation fields should be injected into the rendered product.
File
- modules/
product/ src/ Entity/ ProductTypeInterface.php, line 67
Class
- ProductTypeInterface
- Defines the interface for product types.
Namespace
Drupal\commerce_product\EntityCode
public function setInjectVariationFields($inject);