function AllowedValuesConstraintValidator::create
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AllowedValuesConstraintValidator.php \Drupal\Core\Validation\Plugin\Validation\Constraint\AllowedValuesConstraintValidator::create()
- 10 core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AllowedValuesConstraintValidator.php \Drupal\Core\Validation\Plugin\Validation\Constraint\AllowedValuesConstraintValidator::create()
- 11.x core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AllowedValuesConstraintValidator.php \Drupal\Core\Validation\Plugin\Validation\Constraint\AllowedValuesConstraintValidator::create()
Overrides ContainerInjectionInterface::create
File
-
core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ AllowedValuesConstraintValidator.php, line 33
Class
- AllowedValuesConstraintValidator
- Validates the AllowedValues constraint.
Namespace
Drupal\Core\Validation\Plugin\Validation\ConstraintCode
public static function create(ContainerInterface $container) {
return new static($container->get('current_user'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.