function FileSanitizationEventSubscriber::getSubscribedEvents
Same name in other branches
- 11.x core/modules/file/tests/modules/file_validator_test/src/EventSubscriber/FileSanitizationEventSubscriber.php \Drupal\file_validator_test\EventSubscriber\FileSanitizationEventSubscriber::getSubscribedEvents()
File
-
core/
modules/ file/ tests/ modules/ file_validator_test/ src/ EventSubscriber/ FileSanitizationEventSubscriber.php, line 40
Class
- FileSanitizationEventSubscriber
- Provides a file sanitization listener for file upload tests.
Namespace
Drupal\file_validator_test\EventSubscriberCode
public static function getSubscribedEvents() : array {
return [
FileUploadSanitizeNameEvent::class => 'onFileSanitization',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.