You are here

public function CoreExtensionMimeTypeGuesserExtended::listTypes in Sophron 8

Returns a list of MIME types supported by Drupal's core guesser.

Return value

string[] A list of MIME types.

File

src/CoreExtensionMimeTypeGuesserExtended.php, line 29

Class

CoreExtensionMimeTypeGuesserExtended
Extends the class that Drupal core uses to guess the MIME type of a file.

Namespace

Drupal\sophron

Code

public function listTypes() {
  return $this
    ->getMapping()['mimetypes'];
}