You are here

public function TestFieldConstraint::validatedBy in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/field/tests/modules/field_test/src/Plugin/Validation/Constraint/TestFieldConstraint.php \Drupal\field_test\Plugin\Validation\Constraint\TestFieldConstraint::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

Overrides Constraint::validatedBy

File

core/modules/field/tests/modules/field_test/src/Plugin/Validation/Constraint/TestFieldConstraint.php, line 33
Contains \Drupal\field_test\Plugin\Validation\Constraint\TestFieldConstraint.

Class

TestFieldConstraint
Checks if a value is not equal.

Namespace

Drupal\field_test\Plugin\Validation\Constraint

Code

public function validatedBy() {
  return '\\Symfony\\Component\\Validator\\Constraints\\NotEqualToValidator';
}