interface ConstraintValidatorInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/ConstraintValidatorInterface.php \Symfony\Component\Validator\ConstraintValidatorInterface
@author Bernhard Schussek <bschussek@gmail.com>
Hierarchy
- interface \Symfony\Component\Validator\ConstraintValidatorInterface
Expanded class hierarchy of ConstraintValidatorInterface
All classes that implement ConstraintValidatorInterface
6 files declare their use of ConstraintValidatorInterface
- AbstractConstraintValidatorTest.php in vendor/
symfony/ validator/ Tests/ Constraints/ AbstractConstraintValidatorTest.php - LinkAccessConstraintValidator.php in core/
modules/ link/ src/ Plugin/ Validation/ Constraint/ LinkAccessConstraintValidator.php - Contains \Drupal\link\Plugin\Validation\Constraint\LinkAccessConstraintValidator.
- LinkExternalProtocolsConstraintValidator.php in core/
modules/ link/ src/ Plugin/ Validation/ Constraint/ LinkExternalProtocolsConstraintValidator.php - Contains \Drupal\link\Plugin\Validation\Constraint\LinkExternalProtocolsConstraintValidator.
- LinkNotExistingInternalConstraintValidator.php in core/
modules/ link/ src/ Plugin/ Validation/ Constraint/ LinkNotExistingInternalConstraintValidator.php - Contains \Drupal\link\Plugin\Validation\Constraint\LinkNotExistingInternalConstraintValidator.
- LinkTypeConstraint.php in core/
modules/ link/ src/ Plugin/ Validation/ Constraint/ LinkTypeConstraint.php - Contains \Drupal\link\Plugin\Validation\Constraint\LinkTypeConstraint.
File
- vendor/
symfony/ validator/ ConstraintValidatorInterface.php, line 17
Namespace
Symfony\Component\ValidatorView source
interface ConstraintValidatorInterface {
/**
* Initializes the constraint validator.
*
* @param ExecutionContextInterface $context The current validation context
*/
public function initialize(ExecutionContextInterface $context);
/**
* Checks if the passed value is valid.
*
* @param mixed $value The value that should be validated
* @param Constraint $constraint The constraint for the validation
*/
public function validate($value, Constraint $constraint);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConstraintValidatorInterface:: |
public | function | Initializes the constraint validator. | 6 |
ConstraintValidatorInterface:: |
public | function | Checks if the passed value is valid. | 56 |