You are here

public static function GDToolkit::getSupportedExtensions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php \Drupal\system\Plugin\ImageToolkit\GDToolkit::getSupportedExtensions()

Returns a list of image file extensions supported by the toolkit.

Return value

array An array of supported image file extensions (e.g. png/jpeg/gif).

Overrides ImageToolkitInterface::getSupportedExtensions

File

core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php, line 398
Contains \Drupal\system\Plugin\ImageToolkit\GDToolkit.

Class

GDToolkit
Defines the GD2 toolkit for image manipulation within Drupal.

Namespace

Drupal\system\Plugin\ImageToolkit

Code

public static function getSupportedExtensions() {
  $extensions = array();
  foreach (static::supportedTypes() as $image_type) {
    $extensions[] = Unicode::strtolower(image_type_to_extension($image_type, FALSE));
  }
  return $extensions;
}