MediaWiki REL1_39
MediaWiki\Hook\BitmapHandlerCheckImageAreaHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\BitmapHandlerCheckImageAreaHook:

Public Member Functions

 onBitmapHandlerCheckImageArea ( $image, &$params, &$checkImageAreaHookResult)
 This hook is called by BitmapHandler::normaliseParams, after all normalizations have been performed, except for the $wgMaxImageArea check.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 14 of file BitmapHandlerCheckImageAreaHook.php.

Member Function Documentation

◆ onBitmapHandlerCheckImageArea()

MediaWiki\Hook\BitmapHandlerCheckImageAreaHook::onBitmapHandlerCheckImageArea ( $image,
& $params,
& $checkImageAreaHookResult )

This hook is called by BitmapHandler::normaliseParams, after all normalizations have been performed, except for the $wgMaxImageArea check.

Since
1.35
Parameters
File$image
array&$paramsArray of parameters
bool | null&$checkImageAreaHookResultSet to true or false to override the $wgMaxImageArea check result
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: