function FileValidationConstraintValidator::__construct
Same name in other branches
- 10 core/modules/file/src/Plugin/Validation/Constraint/FileValidationConstraintValidator.php \Drupal\file\Plugin\Validation\Constraint\FileValidationConstraintValidator::__construct()
Creates a new FileValidationConstraintValidator.
Parameters
\Drupal\file\Validation\FileValidatorInterface $fileValidator: The file validator.
File
-
core/
modules/ file/ src/ Plugin/ Validation/ Constraint/ FileValidationConstraintValidator.php, line 23
Class
- FileValidationConstraintValidator
- Checks that a file referenced in a file field is valid.
Namespace
Drupal\file\Plugin\Validation\ConstraintCode
public function __construct(FileValidatorInterface $fileValidator) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.