public function ConstraintValidatorFactoryInterface::getInstance

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

1 method overrides ConstraintValidatorFactoryInterface::getInstance()
ConstraintValidatorFactory::getInstance in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ConstraintValidatorFactory.php
Given a Constraint, this returns the ConstraintValidatorInterface object that should be used to verify its validity.

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);