You are here

public function PriceModifierConstraintValidator::__construct in Price 8

Same name and namespace in other branches
  1. 3.x src/Plugin/Validation/Constraint/PriceModifierConstraintValidator.php \Drupal\price\Plugin\Validation\Constraint\PriceModifierConstraintValidator::__construct()
  2. 3.0.x src/Plugin/Validation/Constraint/PriceModifierConstraintValidator.php \Drupal\price\Plugin\Validation\Constraint\PriceModifierConstraintValidator::__construct()

Constructs a new PriceModifierConstraintValidator object.

Parameters

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

File

src/Plugin/Validation/Constraint/PriceModifierConstraintValidator.php, line 31

Class

PriceModifierConstraintValidator
Validates the price modifier constraint.

Namespace

Drupal\price\Plugin\Validation\Constraint

Code

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