public function FileUploadResult::setSanitizedFilename in Drupal 10
Sets the sanitized filename.
Parameters
string $sanitizedFilename: The sanitized filename.
Return value
$this
File
- core/
modules/ file/ src/ Upload/ FileUploadResult.php, line 58
Class
- FileUploadResult
- Value object for a file upload result.
Namespace
Drupal\file\UploadCode
public function setSanitizedFilename(string $sanitizedFilename) : FileUploadResult {
$this->sanitizedFilename = $sanitizedFilename;
return $this;
}