Given a Constraint, this returns the ConstraintValidatorInterface
object that should be used to verify its validity.
Parameters
Constraint $constraint The source constraint:
Return value
ConstraintValidatorInterface
File
- drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ConstraintValidatorFactoryInterface.php, line 30
Class
- ConstraintValidatorFactoryInterface
- Specifies an object able to return the correct ConstraintValidatorInterface
instance given a Constrain object.
Namespace
Symfony\Component\Validator
Code
public function getInstance(Constraint $constraint);