You are here

public function FileUploadSanitizeNameEvent::isSecurityRename in Drupal 10

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php \Drupal\Core\File\Event\FileUploadSanitizeNameEvent::isSecurityRename()

Gets the security rename flag.

Return value

bool TRUE if there is a rename for security reasons, otherwise FALSE.

File

core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php, line 107

Class

FileUploadSanitizeNameEvent
An event during file upload that lets subscribers sanitize the filename.

Namespace

Drupal\Core\File\Event

Code

public function isSecurityRename() : bool {
  return $this->isSecurityRename;
}