You are here

public function WorkflowFieldConstraintValidator::__construct in Workflow 8

Constructs a new Validator.

Parameters

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

File

src/Plugin/Validation/Constraint/WorkflowFieldConstraintValidator.php, line 39

Class

WorkflowFieldConstraintValidator
Validates the CommentName constraint.

Namespace

Drupal\workflow\Plugin\Validation\Constraint

Code

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