function DrupalStreamWrapperInterface::getMimeType
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.
1 method overrides DrupalStreamWrapperInterface::getMimeType()
- DrupalLocalStreamWrapper::getMimeType in includes/
stream_wrappers.inc - Base implementation of getMimeType().
File
-
includes/
stream_wrappers.inc, line 173
Class
- DrupalStreamWrapperInterface
- Drupal stream wrapper extension.
Code
public static function getMimeType($uri, $mapping = NULL);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.