function RoleExistsConstraintValidator::__construct
Same name and namespace in other branches
- 11.x core/modules/user/src/Plugin/Validation/Constraint/RoleExistsConstraintValidator.php \Drupal\user\Plugin\Validation\Constraint\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(private readonly EntityTypeManagerInterface $entity_type_manager) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.