You are here

public function Todo2311679::getMimeTypes in ImageMagick 8

File

src/Todo2311679.php, line 33

Class

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

Namespace

Drupal\imagemagick

Code

public function getMimeTypes() {
  if ($this->mapping === NULL) {
    $mapping = $this->defaultMapping;

    // Allow modules to alter the default mapping.
    $this->moduleHandler
      ->alter('file_mimetype_mapping', $mapping);
    $this->mapping = $mapping;
  }
  return array_values($this->mapping['mimetypes']);
}