You are here

public function SophronMimeTypeGuesser::setMapping in Sophron 8

Same name in this branch
  1. 8 sophron_guesser/src/SophronMimeTypeGuesser.php \Drupal\sophron_guesser\SophronMimeTypeGuesser::setMapping()
  2. 8 sophron_guesser/src/ProxyClass/SophronMimeTypeGuesser.php \Drupal\sophron_guesser\ProxyClass\SophronMimeTypeGuesser::setMapping()

Sets the mimetypes/extension mapping to use when guessing mimetype.

This method is implemented to ensure that when this class is set to override \Drupal\Core\File\MimeType\ExtensionMimeTypeGuesser in the service definition, any call to this method does not fatal. Actually, for Sophron this is a no-op.

Parameters

array|null $mapping: Not relevant.

File

sophron_guesser/src/SophronMimeTypeGuesser.php, line 90

Class

SophronMimeTypeGuesser
Makes possible to guess the MIME type of a file using its extension.

Namespace

Drupal\sophron_guesser

Code

public function setMapping(array $mapping = NULL) {

  // Do nothing.
}