You are here

public function ProductVariationFieldRenderer::__construct in Commerce Core 8.2

Constructs a new ProductVariationFieldRenderer object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

1 call to ProductVariationFieldRenderer::__construct()
ProductVariationFieldRendererLayoutBuilder::__construct in modules/product/src/ProductVariationFieldRendererLayoutBuilder.php
Constructs a new ProductVariationFieldRendererLayoutBuilder object.
1 method overrides ProductVariationFieldRenderer::__construct()
ProductVariationFieldRendererLayoutBuilder::__construct in modules/product/src/ProductVariationFieldRendererLayoutBuilder.php
Constructs a new ProductVariationFieldRendererLayoutBuilder object.

File

modules/product/src/ProductVariationFieldRenderer.php, line 26

Class

ProductVariationFieldRenderer

Namespace

Drupal\commerce_product

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->variationViewBuilder = $entity_type_manager
    ->getViewBuilder('commerce_product_variation');
}