MediaWiki master
MediaWiki\Hook\BadImageHook Interface Reference

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

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

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

Detailed Description

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

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

Stability: stable
to implement

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