Debian Codegraph @

includes/media/Hook/BitmapHandlerTransformHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Hook;
4
5 use File;
6 use MediaTransformOutput;
7 use TransformationalImageHandler;
8
9 /**
10 * This is a hook handler interface, see docs/Hooks.md.
11 * Use the hook name "BitmapHandlerTransform" to register handlers implementing this interface.
12 *
13 * @stable to implement
14 * @ingroup Hooks
15 */
16 interface BitmapHandlerTransformHook {
17 /**
18 * This hook is called before a file is transformed, giving extensions the
19 * possibility to transform it themselves.
20 *
21 * @since 1.35
22 *
23 * @param TransformationalImageHandler $handler
24 * @param File $image
25 * @param array &$scalerParams Array with scaler parameters
26 * @param null|MediaTransformOutput &$mto
27 * @return bool|void True or no return value to continue or false to abort
28 */
29 public function onBitmapHandlerTransform( $handler, $image, &$scalerParams,
30 &$mto
31 );
32 }