function ImageInterface::getMimeType
Same name in other branches
- 9 core/lib/Drupal/Core/Image/ImageInterface.php \Drupal\Core\Image\ImageInterface::getMimeType()
- 8.9.x core/lib/Drupal/Core/Image/ImageInterface.php \Drupal\Core\Image\ImageInterface::getMimeType()
- 10 core/lib/Drupal/Core/Image/ImageInterface.php \Drupal\Core\Image\ImageInterface::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.
1 method overrides ImageInterface::getMimeType()
- Image::getMimeType in core/
lib/ Drupal/ Core/ Image/ Image.php - Returns the MIME type of the image file.
File
-
core/
lib/ Drupal/ Core/ Image/ ImageInterface.php, line 49
Class
- ImageInterface
- Provides an interface for image objects.
Namespace
Drupal\Core\ImageCode
public function getMimeType();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.