public function CommentNameConstraint::coversFields in Drupal 10
Same name and namespace in other branches
- 8 core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraint.php \Drupal\comment\Plugin\Validation\Constraint\CommentNameConstraint::coversFields()
- 9 core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraint.php \Drupal\comment\Plugin\Validation\Constraint\CommentNameConstraint::coversFields()
File
- core/
modules/ comment/ src/ Plugin/ Validation/ Constraint/ CommentNameConstraint.php, line 42
Class
- CommentNameConstraint
- Supports validating comment author names.
Namespace
Drupal\comment\Plugin\Validation\ConstraintCode
public function coversFields() {
return [
'name',
'uid',
];
}