function FormUploadedFile::__construct
Same name in other branches
- 9 core/modules/file/src/Upload/FormUploadedFile.php \Drupal\file\Upload\FormUploadedFile::__construct()
- 10 core/modules/file/src/Upload/FormUploadedFile.php \Drupal\file\Upload\FormUploadedFile::__construct()
Creates a new FormUploadedFile.
Parameters
\Symfony\Component\HttpFoundation\File\UploadedFile $uploadedFile: The wrapped Symfony uploaded file.
File
-
core/
modules/ file/ src/ Upload/ FormUploadedFile.php, line 28
Class
- FormUploadedFile
- Provides a bridge to Symfony UploadedFile.
Namespace
Drupal\file\UploadCode
public function __construct(UploadedFile $uploadedFile) {
$this->uploadedFile = $uploadedFile;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.