function FileUploadResult::setSecurityRename
Same name in other branches
- 9 core/modules/file/src/Upload/FileUploadResult.php \Drupal\file\Upload\FileUploadResult::setSecurityRename()
- 10 core/modules/file/src/Upload/FileUploadResult.php \Drupal\file\Upload\FileUploadResult::setSecurityRename()
Flags the result as having had a security rename.
Return value
$this
File
-
core/
modules/ file/ src/ Upload/ FileUploadResult.php, line 62
Class
- FileUploadResult
- Value object for a file upload result.
Namespace
Drupal\file\UploadCode
public function setSecurityRename() : FileUploadResult {
$this->securityRename = TRUE;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.