function CommentNameConstraintValidator::__construct
Same name and namespace in other branches
- 11.x core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php \Drupal\comment\Plugin\Validation\Constraint\CommentNameConstraintValidator::__construct()
- 10 core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php \Drupal\comment\Plugin\Validation\Constraint\CommentNameConstraintValidator::__construct()
- 9 core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php \Drupal\comment\Plugin\Validation\Constraint\CommentNameConstraintValidator::__construct()
- 8.9.x core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php \Drupal\comment\Plugin\Validation\Constraint\CommentNameConstraintValidator::__construct()
Constructs a new CommentNameConstraintValidator.
Parameters
\Drupal\user\UserStorageInterface $userStorage: The user storage handler.
File
-
core/
modules/ comment/ src/ Plugin/ Validation/ Constraint/ CommentNameConstraintValidator.php, line 24
Class
- CommentNameConstraintValidator
- Validates the CommentName constraint.
Namespace
Drupal\comment\Plugin\Validation\ConstraintCode
public function __construct(protected UserStorageInterface $userStorage) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.