You are here

public function ImagemagickFormatMapper::getEnabledFormats in ImageMagick 8.2

Same name and namespace in other branches
  1. 8.3 src/ImagemagickFormatMapper.php \Drupal\imagemagick\ImagemagickFormatMapper::getEnabledFormats()
  2. 8 src/ImagemagickFormatMapper.php \Drupal\imagemagick\ImagemagickFormatMapper::getEnabledFormats()

Gets the list of currently enabled image formats.

Return value

array A simple array of image formats.

Overrides ImagemagickFormatMapperInterface::getEnabledFormats

File

src/ImagemagickFormatMapper.php, line 158

Class

ImagemagickFormatMapper
Provides the ImageMagick format mapper.

Namespace

Drupal\imagemagick

Code

public function getEnabledFormats() {
  return array_keys($this
    ->resolveEnabledFormats());
}