public 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 behaviour.

@api

Return value

string

2 methods override Constraint::validatedBy()
LengthConstraint::validatedBy in drupal/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/LengthConstraint.php
Overrides Range::validatedBy().
RangeConstraint::validatedBy in drupal/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/RangeConstraint.php
Overrides Range::validatedBy().

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Constraint.php, line 200

Class

Constraint
Contains the properties of a constraint definition.

Namespace

Symfony\Component\Validator

Code

public function validatedBy() {
  return get_class($this) . 'Validator';
}