You are here

public function ImageInterface::getMimeType in Drupal 9

Same name and namespace in other branches
  1. 8 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\Image

Code

public function getMimeType();