Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ConstraintValidatorInterface.php

interface ConstraintValidatorInterface

@author Bernhard Schussek <bschussek@gmail.com>

Hierarchy

  • interface \Symfony\Component\Validator\ConstraintValidatorInterface

Expanded class hierarchy of ConstraintValidatorInterface

All classes that implement ConstraintValidatorInterface

2 files declare their use of ConstraintValidatorInterface
ConstraintValidatorFactory.php in core/lib/Drupal/Core/Validation/ConstraintValidatorFactory.php
ConstraintValidatorTestCase.php in vendor/symfony/validator/Test/ConstraintValidatorTestCase.php

File

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

Namespace

Symfony\Component\Validator
View source
interface ConstraintValidatorInterface {
    
    /**
     * Initializes the constraint validator.
     *
     * @return void
     */
    public function initialize(ExecutionContextInterface $context);
    
    /**
     * Checks if the passed value is valid.
     *
     * @return void
     */
    public function validate(mixed $value, Constraint $constraint);

}

Members

Title Sort descending Modifiers Object type Summary Overrides
ConstraintValidatorInterface::initialize public function Initializes the constraint validator. 1
ConstraintValidatorInterface::validate public function Checks if the passed value is valid. 119

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal