function CommentNameConstraint::coversFields

Same name and namespace in other branches
  1. 9 core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraint.php \Drupal\comment\Plugin\Validation\Constraint\CommentNameConstraint::coversFields()
  2. 8.9.x core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraint.php \Drupal\comment\Plugin\Validation\Constraint\CommentNameConstraint::coversFields()
  3. 10 core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraint.php \Drupal\comment\Plugin\Validation\Constraint\CommentNameConstraint::coversFields()

Overrides CompositeConstraintBase::coversFields

File

core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraint.php, line 43

Class

CommentNameConstraint
Supports validating comment author names.

Namespace

Drupal\comment\Plugin\Validation\Constraint

Code

public function coversFields() {
    return [
        'name',
        'uid',
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.