You are here

public static function TestToolkit::getSupportedExtensions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php \Drupal\image_test\Plugin\ImageToolkit\TestToolkit::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/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php, line 243
Contains \Drupal\image_test\Plugin\ImageToolkit\TestToolkit.

Class

TestToolkit
Defines a Test toolkit for image manipulation within Drupal.

Namespace

Drupal\image_test\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;
}