Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace MediaWiki\Hook;
4
5use File;
6
7/**
8 * This is a hook handler interface, see docs/Hooks.md.
9 * Use the hook name "BitmapHandlerCheckImageArea" to register handlers implementing this interface.
10 *
11 * @stable to implement
12 * @ingroup Hooks
13 */
14interface BitmapHandlerCheckImageAreaHook {
15    /**
16     * This hook is called by BitmapHandler::normaliseParams, after all
17     * normalizations have been performed, except for the $wgMaxImageArea check.
18     *
19     * @since 1.35
20     *
21     * @param File $image
22     * @param array &$params Array of parameters
23     * @param bool|null &$checkImageAreaHookResult Set to true or false to override the
24     *   $wgMaxImageArea check result
25     * @return bool|void True or no return value to continue or false to abort
26     */
27    public function onBitmapHandlerCheckImageArea( $image, &$params,
28        &$checkImageAreaHookResult
29    );
30}