MediaWiki REL1_37
MediaWiki\Hook\BitmapHandlerTransformHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\BitmapHandlerTransformHook:

Public Member Functions

 onBitmapHandlerTransform ( $handler, $image, &$scalerParams, &$mto)
 This hook is called before a file is transformed, giving extensions the possibility to transform it themselves.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 16 of file BitmapHandlerTransformHook.php.

Member Function Documentation

◆ onBitmapHandlerTransform()

MediaWiki\Hook\BitmapHandlerTransformHook::onBitmapHandlerTransform (   $handler,
  $image,
$scalerParams,
$mto 
)

This hook is called before a file is transformed, giving extensions the possibility to transform it themselves.

Since
1.35
Parameters
TransformationalImageHandler$handler
File$image
array&$scalerParamsArray with scaler parameters
null | MediaTransformOutput&$mto
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: