public function CurrencyConstraintValidator::__construct in Commerce Core 8.2
Constructs a new CurrencyConstraintValidator object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
- modules/
price/ src/ Plugin/ Validation/ Constraint/ CurrencyConstraintValidator.php, line 31
Class
- CurrencyConstraintValidator
- Validates the currency constraint.
Namespace
Drupal\commerce_price\Plugin\Validation\ConstraintCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->entityTypeManager = $entity_type_manager;
}