You are here

public function ConstraintValidatorInterface::validate in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/ConstraintValidatorInterface.php \Symfony\Component\Validator\ConstraintValidatorInterface::validate()

Checks if the passed value is valid.

Parameters

mixed $value The value that should be validated:

Constraint $constraint The constraint for the validation:

56 methods override ConstraintValidatorInterface::validate()
AbstractComparisonValidator::validate in vendor/symfony/validator/Constraints/AbstractComparisonValidator.php
Checks if the passed value is valid.
AllValidator::validate in vendor/symfony/validator/Constraints/AllValidator.php
Checks if the passed value is valid.
BlankValidator::validate in vendor/symfony/validator/Constraints/BlankValidator.php
Checks if the passed value is valid.
BundleConstraintValidator::validate in core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraintValidator.php
Checks if the passed value is valid.
CallbackValidator::validate in vendor/symfony/validator/Constraints/CallbackValidator.php
Checks if the passed value is valid.

... See full list

File

vendor/symfony/validator/ConstraintValidatorInterface.php, line 32

Class

ConstraintValidatorInterface
@author Bernhard Schussek <bschussek@gmail.com>

Namespace

Symfony\Component\Validator

Code

public function validate($value, Constraint $constraint);