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

Breadcrumb

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

function AbstractComparisonValidator::compareValues

Compares the two given values to find if their relationship is valid.

1 call to AbstractComparisonValidator::compareValues()
AbstractComparisonValidator::validate in vendor/symfony/validator/Constraints/AbstractComparisonValidator.php
Checks if the passed value is valid.
9 methods override AbstractComparisonValidator::compareValues()
DivisibleByValidator::compareValues in vendor/symfony/validator/Constraints/DivisibleByValidator.php
Compares the two given values to find if their relationship is valid.
EqualToValidator::compareValues in vendor/symfony/validator/Constraints/EqualToValidator.php
Compares the two given values to find if their relationship is valid.
GreaterThanOrEqualValidator::compareValues in vendor/symfony/validator/Constraints/GreaterThanOrEqualValidator.php
Compares the two given values to find if their relationship is valid.
GreaterThanValidator::compareValues in vendor/symfony/validator/Constraints/GreaterThanValidator.php
Compares the two given values to find if their relationship is valid.
IdenticalToValidator::compareValues in vendor/symfony/validator/Constraints/IdenticalToValidator.php
Compares the two given values to find if their relationship is valid.

... See full list

File

vendor/symfony/validator/Constraints/AbstractComparisonValidator.php, line 95

Class

AbstractComparisonValidator
Provides a base class for the validation of property comparisons.

Namespace

Symfony\Component\Validator\Constraints

Code

protected abstract function compareValues(mixed $value1, mixed $value2) : bool;

API Navigation

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