function RoleExistsConstraintValidator::__construct
Create a new RoleExistsConstraintValidator instance.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
-
core/
modules/ user/ src/ Plugin/ Validation/ Constraint/ RoleExistsConstraintValidator.php, line 25
Class
- RoleExistsConstraintValidator
- Validates that a role exists.
Namespace
Drupal\user\Plugin\Validation\ConstraintCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.