function FileUploadResult::setOriginalFilename
Same name in other branches
- 10 core/modules/file/src/Upload/FileUploadResult.php \Drupal\file\Upload\FileUploadResult::setOriginalFilename()
- 11.x core/modules/file/src/Upload/FileUploadResult.php \Drupal\file\Upload\FileUploadResult::setOriginalFilename()
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\UploadCode
public function setOriginalFilename(string $originalFilename) : FileUploadResult {
$this->originalFilename = $originalFilename;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.