You are here

public function CommentNameConstraintValidator::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php \Drupal\comment\Plugin\Validation\Constraint\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 42
Contains \Drupal\comment\Plugin\Validation\Constraint\CommentNameConstraintValidator.

Class

CommentNameConstraintValidator
Validates the CommentName constraint.

Namespace

Drupal\comment\Plugin\Validation\Constraint

Code

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