You are here

public function FileUploadResult::getFile in Drupal 10

Gets the File entity.

Return value

\Drupal\file\FileInterface

File

core/modules/file/src/Upload/FileUploadResult.php, line 130

Class

FileUploadResult
Value object for a file upload result.

Namespace

Drupal\file\Upload

Code

public function getFile() : FileInterface {
  return $this->file;
}