| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Page\Hook; |
| 4 | |
| 5 | use File; |
| 6 | use ImageHistoryList; |
| 7 | |
| 8 | /** |
| 9 | * This is a hook handler interface, see docs/Hooks.md. |
| 10 | * Use the hook name "ImagePageFileHistoryLine" to register handlers implementing this interface. |
| 11 | * |
| 12 | * @stable to implement |
| 13 | * @ingroup Hooks |
| 14 | */ |
| 15 | interface ImagePageFileHistoryLineHook { |
| 16 | /** |
| 17 | * This hook is called when a file history line is constructed. |
| 18 | * |
| 19 | * @since 1.35 |
| 20 | * |
| 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 |
| 27 | */ |
| 28 | public function onImagePageFileHistoryLine( $imageHistoryList, $file, &$line, &$css ); |
| 29 | } |