abstract class ConstraintValidator

You are here

Base class for constraint validators

@author Bernhard Schussek <bschussek@gmail.com>

@api

Namespace

Symfony\Component\Validator

Hierarchy

Expanded class hierarchy of ConstraintValidator

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
ConstraintValidator::$context protected property
ConstraintValidator::initialize public function Initializes the constraint validator. Overrides ConstraintValidatorInterface::initialize
ConstraintValidatorInterface::validate public function Checks if the passed value is valid.

File

core/vendor/symfony/validator/Symfony/Component/Validator/ConstraintValidator.php, line 21

View source
abstract class ConstraintValidator implements ConstraintValidatorInterface {
  /**
   * @var ExecutionContextInterface
   */
  protected $context;

  /**
   * {@inheritDoc}
   */
  public function initialize(ExecutionContextInterface $context) {
    $this->context = $context;
  }
}
42 files declare their use of ConstraintValidator
AbstractComparisonValidator.php in core/vendor/symfony/validator/Symfony/Component/Validator/Constraints/AbstractComparisonValidator.php
AllValidator.php in core/vendor/symfony/validator/Symfony/Component/Validator/Constraints/AllValidator.php
BlankValidator.php in core/vendor/symfony/validator/Symfony/Component/Validator/Constraints/BlankValidator.php
BundleConstraintValidator.php in core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraintValidator.php
Contains \Drupal\Core\Entity\Plugin\Validation\Constraint\BundleConstraintValidator.
CallbackValidator.php in core/vendor/symfony/validator/Symfony/Component/Validator/Constraints/CallbackValidator.php

... See full list