public static function SecurityFileUploadEventSubscriber::getSubscribedEvents in Drupal 10
Same name and namespace in other branches
- 9 core/modules/system/src/EventSubscriber/SecurityFileUploadEventSubscriber.php \Drupal\system\EventSubscriber\SecurityFileUploadEventSubscriber::getSubscribedEvents()
File
- core/
modules/ system/ src/ EventSubscriber/ SecurityFileUploadEventSubscriber.php, line 37
Class
- SecurityFileUploadEventSubscriber
- The final subscriber to 'file.upload.sanitize.name'.
Namespace
Drupal\system\EventSubscriberCode
public static function getSubscribedEvents() : array {
// This event must be run last to ensure the filename obeys the security
// rules.
$events[FileUploadSanitizeNameEvent::class][] = [
'sanitizeName',
PHP_INT_MIN,
];
return $events;
}