MediaWiki REL1_39
MediaWiki\Hook\MimeMagicImproveFromExtensionHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. 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

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "MimeMagicImproveFromExtension" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 14 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: