function LegacyMimeTypeMapLoadedSubscriber::getSubscribedEvents

File

core/lib/Drupal/Core/File/EventSubscriber/LegacyMimeTypeMapLoadedSubscriber.php, line 50

Class

LegacyMimeTypeMapLoadedSubscriber
Modifies the MIME type map by calling hook_file_mimetype_mapping_alter().

Namespace

Drupal\Core\File\EventSubscriber

Code

public static function getSubscribedEvents() : array {
  return [
    MimeTypeMapLoadedEvent::class => 'onMimeTypeMapLoaded',
  ];
}

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