public function FormUploadedFile::__construct in Drupal 10
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 25
Class
- FormUploadedFile
- Provides a bridge to Symfony UploadedFile.
Namespace
Drupal\file\UploadCode
public function __construct(UploadedFile $uploadedFile) {
$this->uploadedFile = $uploadedFile;
}