file.mime_type.guesser
Same name in other branches
- 8.9.x core/core.services.yml \file.mime_type.guesser
- 10 core/core.services.yml \file.mime_type.guesser
Class
Drupal\Core\File\MimeType\MimeTypeGuesser12 string references to file.mime_type.guesser
- CKEditor5ImageController::create in core/
modules/ ckeditor5/ src/ Controller/ CKEditor5ImageController.php - Instantiates a new instance of this class.
- File::preCreate in core/
modules/ file/ src/ Entity/ File.php - Changes the values of an entity before it is created.
- FileUploadResource::create in core/
modules/ file/ src/ Plugin/ rest/ resource/ FileUploadResource.php - Creates an instance of the plugin.
- ImageItem::generateSampleValue in core/
modules/ image/ src/ Plugin/ Field/ FieldType/ ImageItem.php - Generates placeholder field values.
- MimeTypeGuesser::registerWithSymfonyGuesser in core/
lib/ Drupal/ Core/ File/ MimeType/ MimeTypeGuesser.php - A helper function to register with Symfony's singleton MIME type guesser.
File
-
core/
core.services.yml
View source
- class: Drupal\Core\File\MimeType\MimeTypeGuesser
- arguments:
- - '@stream_wrapper_manager'
- lazy: true
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.