You are here

public function ProtectedUserFieldConstraintValidator::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/Plugin/Validation/Constraint/ProtectedUserFieldConstraintValidator.php \Drupal\user\Plugin\Validation\Constraint\ProtectedUserFieldConstraintValidator::__construct()

Constructs the object.

Parameters

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

\Drupal\Core\Session\AccountProxyInterface $current_user: The current user.

File

core/modules/user/src/Plugin/Validation/Constraint/ProtectedUserFieldConstraintValidator.php, line 43
Contains \Drupal\user\Plugin\Validation\Constraint\ProtectedUserFieldConstraintValidator.

Class

ProtectedUserFieldConstraintValidator
Validates the ProtectedUserFieldConstraint constraint.

Namespace

Drupal\user\Plugin\Validation\Constraint

Code

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