You are here

protected static function GDToolkit::supportedTypes 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::supportedTypes()

Returns a list of image types supported by the toolkit.

Return value

array An array of available image types. An image type is represented by a PHP IMAGETYPE_* constant (e.g. IMAGETYPE_JPEG, IMAGETYPE_PNG, etc.).

4 calls to GDToolkit::supportedTypes()
GDToolkit::extensionToImageType in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
Returns the IMAGETYPE_xxx constant for the given extension.
GDToolkit::getSupportedExtensions in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
Returns a list of image file extensions supported by the toolkit.
GDToolkit::parseFile in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
Determines if a file contains a valid image.
GDToolkit::setType in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
Sets the PHP type of the image.

File

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

Class

GDToolkit
Defines the GD2 toolkit for image manipulation within Drupal.

Namespace

Drupal\system\Plugin\ImageToolkit

Code

protected static function supportedTypes() {
  return array(
    IMAGETYPE_PNG,
    IMAGETYPE_JPEG,
    IMAGETYPE_GIF,
  );
}