file.mime_type.guesser
Same name in other branches
- 9 core/core.services.yml \file.mime_type.guesser
- 8.9.x core/core.services.yml \file.mime_type.guesser
Class
Drupal\Core\File\MimeType\MimeTypeGuesserTags
- service_collector
5 string references to file.mime_type.guesser
- FileUploadHandlerTest::testLockAcquireException in core/
modules/ file/ tests/ src/ Kernel/ FileUploadHandlerTest.php - Test the lock acquire exception.
- ImageItem::generateSampleValue in core/
modules/ image/ src/ Plugin/ Field/ FieldType/ ImageItem.php - MimeTypeGuesser::registerWithSymfonyGuesser in core/
lib/ Drupal/ Core/ File/ MimeType/ MimeTypeGuesser.php - A helper function to register with Symfony's singleton MIME type guesser.
- MimeTypeTest::testFileMimeTypeDetection in core/
tests/ Drupal/ KernelTests/ Core/ File/ MimeTypeTest.php - Tests 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: addMimeTypeGuesser }
- lazy: true
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.