MediaWiki  master
MediaWiki\Hook\BadImageHook Interface Reference

Stable for implementation. More...

Inheritance diagram for MediaWiki\Hook\BadImageHook:

Public Member Functions

 onBadImage ( $name, &$bad)
 This hook is called when checking against the bad image list. More...
 

Detailed Description

Stable for implementation.

Definition at line 9 of file BadImageHook.php.

Member Function Documentation

◆ onBadImage()

MediaWiki\Hook\BadImageHook::onBadImage (   $name,
$bad 
)

This hook is called when checking against the bad image list.

If an image is "bad", it is not rendered inline in wiki pages or galleries in category pages.

Since
1.35
Parameters
string$nameImage name being checked
bool&$badWhether or not the image is "bad"
Returns
bool|void True or no return value to continue, or false and change $bad to override

Implemented in MediaWiki\HookContainer\HookRunner.


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