You are here

protected property OnlyOneConstraintValidator::$entityTypeManager in Allow a content type only once (Only One) 8

The entity type manager service.

Type: \Drupal\Core\Entity\EntityTypeManagerInterface

File

src/Plugin/Validation/Constraint/OnlyOneConstraintValidator.php, line 37

Class

OnlyOneConstraintValidator
Validates the OnlyOne constraint.

Namespace

Drupal\onlyone\Plugin\Validation\Constraint

Code

protected $entityTypeManager;