function FileUploadResult::isRenamed
Same name in other branches
- 9 core/modules/file/src/Upload/FileUploadResult.php \Drupal\file\Upload\FileUploadResult::isRenamed()
- 11.x core/modules/file/src/Upload/FileUploadResult.php \Drupal\file\Upload\FileUploadResult::isRenamed()
Returns if there was a file rename.
Return value
bool
File
-
core/
modules/ file/ src/ Upload/ FileUploadResult.php, line 129
Class
- FileUploadResult
- Value object for a file upload result.
Namespace
Drupal\file\UploadCode
public function isRenamed() : bool {
return $this->originalFilename !== $this->sanitizedFilename;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.