function FileUploadResult::getFile
Same name in other branches
- 10 core/modules/file/src/Upload/FileUploadResult.php \Drupal\file\Upload\FileUploadResult::getFile()
- 11.x core/modules/file/src/Upload/FileUploadResult.php \Drupal\file\Upload\FileUploadResult::getFile()
Gets the File entity.
Return value
File
-
core/
modules/ file/ src/ Upload/ FileUploadResult.php, line 130
Class
- FileUploadResult
- Value object for a file upload result.
Namespace
Drupal\file\UploadCode
public function getFile() : FileInterface {
return $this->file;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.