You are here

public function AllowedValuesConstraintValidator::__construct in Select (or other) 8

Same name and namespace in other branches
  1. 4.x src/Plugin/Validation/AllowedValuesConstraintValidator.php \Drupal\select_or_other\Plugin\Validation\AllowedValuesConstraintValidator::__construct()

Constructs a new AllowedValuesConstraintValidator.

Parameters

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

File

src/Plugin/Validation/AllowedValuesConstraintValidator.php, line 46

Class

AllowedValuesConstraintValidator
Validates the AllowedValues constraint.

Namespace

Drupal\select_or_other\Plugin\Validation

Code

public function __construct(AccountInterface $current_user) {
  $this->currentUser = $current_user;
}