function UploadedFileValidatorInterface::validate
Same name in other branches
- 11.x core/modules/file/src/Validation/UploadedFileValidatorInterface.php \Drupal\file\Validation\UploadedFileValidatorInterface::validate()
Validates an uploaded file.
Parameters
\Symfony\Component\HttpFoundation\File\UploadedFile $uploadedFile: The uploaded file.
array $options: An array of options accepted by \Drupal\file\Validation\Constraint\UploadedFileConstraint.
Return value
\Symfony\Component\Validator\ConstraintViolationListInterface The constraint violation list.
1 method overrides UploadedFileValidatorInterface::validate()
- UploadedFileValidator::validate in core/
modules/ file/ src/ Validation/ UploadedFileValidator.php - Validates an uploaded file.
File
-
core/
modules/ file/ src/ Validation/ UploadedFileValidatorInterface.php, line 27
Class
- UploadedFileValidatorInterface
- Validator for uploaded files.
Namespace
Drupal\file\ValidationCode
public function validate(UploadedFile $uploadedFile, array $options = []) : ConstraintViolationListInterface;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.