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.
File
-
vendor/
symfony/ validator/ Constraint.php, line 272
Class
- Constraint
- Contains the properties of a constraint definition.
Namespace
Symfony\Component\ValidatorCode
public function validatedBy() : string {
return static::class . 'Validator';
}