public function UniqueFieldConstraint::validatedBy in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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.
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/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ UniqueFieldConstraint.php, line 27 - Contains \Drupal\Core\Validation\Plugin\Validation\Constraint\UniqueFieldConstraint.
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';
}