public function AllowedValuesConstraintValidator::__construct in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AllowedValuesConstraintValidator.php \Drupal\Core\Validation\Plugin\Validation\Constraint\AllowedValuesConstraintValidator::__construct()
- 10 core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AllowedValuesConstraintValidator.php \Drupal\Core\Validation\Plugin\Validation\Constraint\AllowedValuesConstraintValidator::__construct()
Constructs a new AllowedValuesConstraintValidator.
Parameters
\Drupal\Core\Session\AccountInterface $current_user: The current user.
File
- core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ AllowedValuesConstraintValidator.php, line 43
Class
- AllowedValuesConstraintValidator
- Validates the AllowedValues constraint.
Namespace
Drupal\Core\Validation\Plugin\Validation\ConstraintCode
public function __construct(AccountInterface $current_user) {
$this->currentUser = $current_user;
}