function 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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.