You are here

public function ProductAttributeValueAccessControlHandler::__construct in Commerce Core 8.2

Constructs a new ProductAttributeValueAccessControlHandler object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

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

Overrides EntityAccessControlHandler::__construct

File

modules/product/src/ProductAttributeValueAccessControlHandler.php, line 42

Class

ProductAttributeValueAccessControlHandler
Provides an access control handler for product attribute values.

Namespace

Drupal\commerce_product

Code

public function __construct(EntityTypeInterface $entity_type, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($entity_type);
  $this->entityTypeManager = $entity_type_manager;
}