function CommentNameConstraintValidator::__construct

Constructs a new CommentNameConstraintValidator.

Parameters

\Drupal\user\UserStorageInterface $user_storage: The user storage handler.

File

core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php, line 30

Class

CommentNameConstraintValidator
Validates the CommentName constraint.

Namespace

Drupal\comment\Plugin\Validation\Constraint

Code

public function __construct(UserStorageInterface $user_storage) {
  $this->userStorage = $user_storage;
}

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