function ImageToolkitInterface::getMimeType
Same name in other branches
- 9 core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php \Drupal\Core\ImageToolkit\ImageToolkitInterface::getMimeType()
- 8.9.x core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php \Drupal\Core\ImageToolkit\ImageToolkitInterface::getMimeType()
- 10 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\ImageToolkitCode
public function getMimeType();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.