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

Breadcrumb

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

function Constraint::validatedBy

Returns the name of the class that validates this constraint.

By default, this is the fully qualified name of the constraint class suffixed with "Validator". You can override this method to change that behavior.

9 methods override Constraint::validatedBy()
Compound::validatedBy in vendor/symfony/validator/Constraints/Compound.php
Returns the name of the class that validates this constraint.
CountConstraint::validatedBy in core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/CountConstraint.php
Returns the name of the class that validates this constraint.
EmailConstraint::validatedBy in core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/EmailConstraint.php
Returns the name of the class that validates this constraint.
Expression::validatedBy in vendor/symfony/validator/Constraints/Expression.php
Returns the name of the class that validates this constraint.
ExpressionSyntax::validatedBy in vendor/symfony/validator/Constraints/ExpressionSyntax.php
Returns the name of the class that validates this constraint.

... See full list

File

vendor/symfony/validator/Constraint.php, line 272

Class

Constraint
Contains the properties of a constraint definition.

Namespace

Symfony\Component\Validator

Code

public function validatedBy() : string {
    return static::class . 'Validator';
}

API Navigation

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