You are here

interface ConstraintValidatorInterface in Zircon Profile 8

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

@author Bernhard Schussek <bschussek@gmail.com>

Hierarchy

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.

... See full list

File

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

Namespace

Symfony\Component\Validator
View 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

Namesort descending Modifiers Type Description Overrides
ConstraintValidatorInterface::initialize public function Initializes the constraint validator. 6
ConstraintValidatorInterface::validate public function Checks if the passed value is valid. 56