Checks if the passed value is valid.
@api
Parameters
mixed $value The value that should be validated:
Constraint $constraint The constraint for the validation:
File
- drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ConstraintValidatorInterface.php, line 36
Class
- ConstraintValidatorInterface
- @author Bernhard Schussek <bschussek@gmail.com>
Namespace
Symfony\Component\Validator
Code
public function validate($value, Constraint $constraint);