Merge ".mailmap: Correct two contributor names"
[mediawiki.git] / includes / page / Hook / ImagePageFileHistoryLineHook.php
blobd5ce366653964e6da9558430180eceae7945a8cd
1 <?php
3 namespace MediaWiki\Page\Hook;
5 use File;
6 use ImageHistoryList;
8 /**
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "ImagePageFileHistoryLine" to register handlers implementing this interface.
12 * @stable to implement
13 * @ingroup Hooks
15 interface ImagePageFileHistoryLineHook {
16 /**
17 * This hook is called when a file history line is constructed.
19 * @since 1.35
21 * @param ImageHistoryList $imageHistoryList Formerly an ImagePage but since
22 * 1.27 it is an ImageHistoryList.
23 * @param File $file
24 * @param string &$line HTML of the history line
25 * @param string|null &$css Line CSS class
26 * @return bool|void True or no return value to continue or false to abort
28 public function onImagePageFileHistoryLine( $imageHistoryList, $file, &$line, &$css );