MediaWiki fundraising/REL1_35
MediaWiki\Hook\MimeMagicImproveFromExtensionHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\MimeMagicImproveFromExtensionHook:

Public Member Functions

 onMimeMagicImproveFromExtension ( $mimeMagic, $ext, &$mime)
 Use this hook to further improve the MIME type detected by considering the file extension.
 

Detailed Description

Stable to implement.

Definition at line 11 of file MimeMagicImproveFromExtensionHook.php.

Member Function Documentation

◆ onMimeMagicImproveFromExtension()

MediaWiki\Hook\MimeMagicImproveFromExtensionHook::onMimeMagicImproveFromExtension ( $mimeMagic,
$ext,
& $mime )

Use this hook to further improve the MIME type detected by considering the file extension.

Since
1.35
Parameters
MimeAnalyzer$mimeMagic
string$extFile extension
string&$mimeMIME type (in/out)
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: