You are here

public function FileUploadResult::setOriginalFilename in Drupal 10

Sets the original filename.

Parameters

string $originalFilename: The original filename.

Return value

$this

File

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

Class

FileUploadResult
Value object for a file upload result.

Namespace

Drupal\file\Upload

Code

public function setOriginalFilename(string $originalFilename) : FileUploadResult {
  $this->originalFilename = $originalFilename;
  return $this;
}