function FileUploadSanitizeNameEvent::setSecurityRename
Same name in other branches
- 10 core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php \Drupal\Core\File\Event\FileUploadSanitizeNameEvent::setSecurityRename()
- 11.x core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php \Drupal\Core\File\Event\FileUploadSanitizeNameEvent::setSecurityRename()
Sets the security rename flag.
Return value
$this
File
-
core/
lib/ Drupal/ Core/ File/ Event/ FileUploadSanitizeNameEvent.php, line 96
Class
- FileUploadSanitizeNameEvent
- An event during file upload that lets subscribers sanitize the filename.
Namespace
Drupal\Core\File\EventCode
public function setSecurityRename() : self {
$this->isSecurityRename = TRUE;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.