You are here

public function TestFieldConstraint::validatedBy in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/field/tests/modules/field_test/src/Plugin/Validation/Constraint/TestFieldConstraint.php \Drupal\field_test\Plugin\Validation\Constraint\TestFieldConstraint::validatedBy()
  2. 9 core/modules/field/tests/modules/field_test/src/Plugin/Validation/Constraint/TestFieldConstraint.php \Drupal\field_test\Plugin\Validation\Constraint\TestFieldConstraint::validatedBy()

File

core/modules/field/tests/modules/field_test/src/Plugin/Validation/Constraint/TestFieldConstraint.php, line 28

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';
}