function FormUploadedFile::validate
Same name in other branches
- 10 core/modules/file/src/Upload/FormUploadedFile.php \Drupal\file\Upload\FormUploadedFile::validate()
Overrides UploadedFileInterface::validate
File
-
core/
modules/ file/ src/ Upload/ FormUploadedFile.php, line 70
Class
- FormUploadedFile
- Provides a bridge to Symfony UploadedFile.
Namespace
Drupal\file\UploadCode
public function validate(ValidatorInterface $validator, array $options = []) : ConstraintViolationListInterface {
$constraint = new UploadedFileConstraint($options);
return $validator->validate($this->uploadedFile, $constraint);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.