function FileValidationConstraintValidator::create
Same name in other branches
- 11.x core/modules/file/src/Plugin/Validation/Constraint/FileValidationConstraintValidator.php \Drupal\file\Plugin\Validation\Constraint\FileValidationConstraintValidator::create()
Overrides ContainerInjectionInterface::create
File
-
core/
modules/ file/ src/ Plugin/ Validation/ Constraint/ FileValidationConstraintValidator.php, line 30
Class
- FileValidationConstraintValidator
- Checks that a file referenced in a file field is valid.
Namespace
Drupal\file\Plugin\Validation\ConstraintCode
public static function create(ContainerInterface $container) : self {
return new static($container->get('file.validator'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.