file.mime_type.guesser

Same name in other branches
  1. 8.9.x core/core.services.yml \file.mime_type.guesser
  2. 10 core/core.services.yml \file.mime_type.guesser

Class

Drupal\Core\File\MimeType\MimeTypeGuesser
12 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.

... See full list

File

core/core.services.yml

View source
  1. class: Drupal\Core\File\MimeType\MimeTypeGuesser
  2. arguments:
  3. - '@stream_wrapper_manager'
  4. lazy: true

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