function UniqueFieldConstraint::validatedBy
Same name in other branches
- 9 core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UniqueFieldConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\UniqueFieldConstraint::validatedBy()
- 8.9.x core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UniqueFieldConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\UniqueFieldConstraint::validatedBy()
- 11.x core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UniqueFieldConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\UniqueFieldConstraint::validatedBy()
Returns the name of the class that validates this constraint.
Return value
string
1 method overrides UniqueFieldConstraint::validatedBy()
- FileUriUnique::validatedBy in core/
modules/ file/ src/ Plugin/ Validation/ Constraint/ FileUriUnique.php - Returns the name of the class that validates this constraint.
File
-
core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ UniqueFieldConstraint.php, line 35
Class
- UniqueFieldConstraint
- Checks if an entity field has a unique value.
Namespace
Drupal\Core\Validation\Plugin\Validation\ConstraintCode
public function validatedBy() {
return '\\Drupal\\Core\\Validation\\Plugin\\Validation\\Constraint\\UniqueFieldValueValidator';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.