function FileUploadSanitizeNameEvent::getFilename

Same name in other branches
  1. 9 core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php \Drupal\Core\File\Event\FileUploadSanitizeNameEvent::getFilename()
  2. 10 core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php \Drupal\Core\File\Event\FileUploadSanitizeNameEvent::getFilename()

Gets the filename.

Return value

string The filename.

File

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

Class

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

Namespace

Drupal\Core\File\Event

Code

public function getFilename() : string {
    return $this->filename;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.