3 namespace MediaWiki\Page\Hook
;
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
15 interface ImagePageFindFileHook
{
17 * This hook is called when fetching the file associated with an image
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
26 * @return bool|void True or no return value to continue or false to abort
28 public function onImagePageFindFile( $page, &$file, &$displayFile );