function FileEventSubscriber::getSubscribedEvents
Same name in other branches
- 11.x core/modules/file/src/EventSubscriber/FileEventSubscriber.php \Drupal\file\EventSubscriber\FileEventSubscriber::getSubscribedEvents()
File
-
core/
modules/ file/ src/ EventSubscriber/ FileEventSubscriber.php, line 38
Class
- FileEventSubscriber
- Sanitizes uploaded filenames.
Namespace
Drupal\file\EventSubscriberCode
public static function getSubscribedEvents() : array {
return [
FileUploadSanitizeNameEvent::class => 'sanitizeFilename',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.