public function CurrencyConstraintValidator::__construct in Price 3.x
Same name and namespace in other branches
- 8 src/Plugin/Validation/Constraint/CurrencyConstraintValidator.php \Drupal\price\Plugin\Validation\Constraint\CurrencyConstraintValidator::__construct()
- 2.0.x src/Plugin/Validation/Constraint/CurrencyConstraintValidator.php \Drupal\price\Plugin\Validation\Constraint\CurrencyConstraintValidator::__construct()
- 2.x src/Plugin/Validation/Constraint/CurrencyConstraintValidator.php \Drupal\price\Plugin\Validation\Constraint\CurrencyConstraintValidator::__construct()
- 3.0.x src/Plugin/Validation/Constraint/CurrencyConstraintValidator.php \Drupal\price\Plugin\Validation\Constraint\CurrencyConstraintValidator::__construct()
Constructs a new CurrencyConstraintValidator object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
- src/
Plugin/ Validation/ Constraint/ CurrencyConstraintValidator.php, line 31
Class
- CurrencyConstraintValidator
- Validates the currency constraint.
Namespace
Drupal\price\Plugin\Validation\ConstraintCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->entityTypeManager = $entity_type_manager;
}