Merge ".mailmap: Correct two contributor names"
[mediawiki.git] / includes / page / Hook / ImagePageFindFileHook.php
bloba16fc29af0dfb46c02bf6a0a1f6af6213518ef3a
1 <?php
3 namespace MediaWiki\Page\Hook;
5 use File;
6 use ImagePage;
8 /**
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "ImagePageFindFile" to register handlers implementing this interface.
12 * @stable to implement
13 * @ingroup Hooks
15 interface ImagePageFindFileHook {
16 /**
17 * This hook is called when fetching the file associated with an image
18 * page.
20 * @since 1.35
22 * @param ImagePage $page
23 * @param File|false &$file False on input, can be replaced with a File
24 * @param File|false &$displayFile False on input, can be replaced with a
25 * file to display.
26 * @return bool|void True or no return value to continue or false to abort
28 public function onImagePageFindFile( $page, &$file, &$displayFile );