function InputStreamUploadedFile::validate

Same name in other branches
  1. 10 core/modules/file/src/Upload/InputStreamUploadedFile.php \Drupal\file\Upload\InputStreamUploadedFile::validate()

Overrides UploadedFileInterface::validate

File

core/modules/file/src/Upload/InputStreamUploadedFile.php, line 62

Class

InputStreamUploadedFile
An uploaded file from an input stream.

Namespace

Drupal\file\Upload

Code

public function validate(ValidatorInterface $validator, array $options = []) : ConstraintViolationListInterface {
    return new ConstraintViolationList();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.