function FileUploadResult::setSanitizedFilename
Same name in other branches
- 9 core/modules/file/src/Upload/FileUploadResult.php \Drupal\file\Upload\FileUploadResult::setSanitizedFilename()
- 11.x core/modules/file/src/Upload/FileUploadResult.php \Drupal\file\Upload\FileUploadResult::setSanitizedFilename()
Sets the sanitized filename.
Parameters
string $sanitizedFilename: The sanitized filename.
Return value
$this
File
-
core/
modules/ file/ src/ Upload/ FileUploadResult.php, line 75
Class
- FileUploadResult
- Value object for a file upload result.
Namespace
Drupal\file\UploadCode
public function setSanitizedFilename(string $sanitizedFilename) : FileUploadResult {
$this->sanitizedFilename = $sanitizedFilename;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.