You are here

public function Constraint::validatedBy in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Constraint.php \Symfony\Component\Validator\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 behaviour.

Return value

string

11 methods override Constraint::validatedBy()
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.
FileUriUnique::validatedBy in core/modules/file/src/Plugin/Validation/Constraint/FileUriUnique.php
Returns the name of the class that validates this constraint.
LengthConstraint::validatedBy in core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/LengthConstraint.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() {
  return get_class($this) . 'Validator';
}