You are here

public function ProductVariationContext::__construct in Commerce Core 8.2

Constructs a new ProductVariationContext object.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.

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

File

modules/product/src/ContextProvider/ProductVariationContext.php, line 58

Class

ProductVariationContext
Provides a product variation context.

Namespace

Drupal\commerce_product\ContextProvider

Code

public function __construct(RouteMatchInterface $route_match, EntityTypeManagerInterface $entity_type_manager) {
  $this->routeMatch = $route_match;
  $this->entityTypeManager = $entity_type_manager;
}