public static function DrupalStreamWrapperInterface::getMimeType
public static DrupalStreamWrapperInterface::getMimeType($uri, $mapping = NULL)
Returns the MIME type of the resource.
Parameters
$uri: The URI, path, or filename.
$mapping: An optional map of extensions to their mimetypes, in the form:
- 'mimetypes': a list of mimetypes, keyed by an identifier,
- 'extensions': the mapping itself, an associative array in which the key is the extension and the value is the mimetype identifier.
Return value
Returns a string containing the MIME type of the resource.
File
- includes/stream_wrappers.inc, line 173
- Drupal stream wrapper interface.
Class
- DrupalStreamWrapperInterface
- Drupal stream wrapper extension.
Code
public static function getMimeType($uri, $mapping = NULL);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!stream_wrappers.inc/function/DrupalStreamWrapperInterface::getMimeType/7.x