file.mime_type.guesser
Same name in other branches
- 9 core/core.services.yml \file.mime_type.guesser
- 10 core/core.services.yml \file.mime_type.guesser
Class
Drupal\Core\File\MimeType\MimeTypeGuesserTags
- service_collector
5 string references to file.mime_type.guesser
- FileUploadResource::create in core/
modules/ file/ src/ Plugin/ rest/ resource/ FileUploadResource.php - Creates an instance of the plugin.
- MimeTypeGuesser::registerWithSymfonyGuesser in core/
lib/ Drupal/ Core/ File/ MimeType/ MimeTypeGuesser.php - A helper function to register with Symfony's singleton MIME type guesser.
- MimeTypeGuesserTest::testSymfonyGuesserRegistration in core/
tests/ Drupal/ Tests/ Core/ File/ MimeTypeGuesserTest.php - @covers ::registerWithSymfonyGuesser
- MimeTypeTest::testFileMimeTypeDetection in core/
tests/ Drupal/ KernelTests/ Core/ File/ MimeTypeTest.php - Test mapping of mimetypes from filenames.
- ThemeSettingsForm::create in core/
modules/ system/ src/ Form/ ThemeSettingsForm.php - Instantiates a new instance of this class.
File
-
core/
core.services.yml
View source
- class: Drupal\Core\File\MimeType\MimeTypeGuesser
- arguments:
- - '@stream_wrapper_manager'
- tags:
- - { name: service_collector, tag: mime_type_guesser, call: addGuesser }
- lazy: true
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.