You are here

public function ImageToolkitInterface::getMimeType in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php \Drupal\Core\ImageToolkit\ImageToolkitInterface::getMimeType()

Returns the MIME type of the image file.

Return value

string The MIME type of the image file, or an empty string if the image is invalid.

2 methods override ImageToolkitInterface::getMimeType()
GDToolkit::getMimeType in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
Returns the MIME type of the image file.
TestToolkit::getMimeType in core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php
Returns the MIME type of the image file.

File

core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php, line 127

Class

ImageToolkitInterface
Defines an interface for image toolkits.

Namespace

Drupal\Core\ImageToolkit

Code

public function getMimeType();