You are here

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\Entity

Code

public function setInjectVariationFields($inject) {
  $this->injectVariationFields = (bool) $inject;
  return $this;
}