public function Image::getMimeType in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Image/Image.php \Drupal\Core\Image\Image::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.
Overrides ImageInterface::getMimeType
File
- core/
lib/ Drupal/ Core/ Image/ Image.php, line 95 - Contains \Drupal\Core\Image\Image.
Class
- Image
- Defines an image object to represent an image file.
Namespace
Drupal\Core\ImageCode
public function getMimeType() {
return $this
->getToolkit()
->getMimeType();
}