You are here

public function UniqueBirthLogConstraintValidator::__construct in farmOS 2.x

Constructs a UniqueBirthLogConstraintValidator object.

Parameters

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

File

modules/log/birth/src/Plugin/Validation/Constraint/UniqueBirthLogConstraintValidator.php, line 29

Class

UniqueBirthLogConstraintValidator
Validates the UniqueBirthLog constraint.

Namespace

Drupal\farm_birth\Plugin\Validation\Constraint

Code

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