You are here

public function FileUploadResult::setSecurityRename in Drupal 10

Flags the result as having had a security rename.

Return value

$this

File

core/modules/file/src/Upload/FileUploadResult.php, line 45

Class

FileUploadResult
Value object for a file upload result.

Namespace

Drupal\file\Upload

Code

public function setSecurityRename() : FileUploadResult {
  $this->securityRename = TRUE;
  return $this;
}