MediaWiki  master
MediaWiki\Hook\BeforeParserFetchFileAndTitleHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Hook\BeforeParserFetchFileAndTitleHook:

Public Member Functions

 onBeforeParserFetchFileAndTitle ( $parser, $nt, &$options, &$descQuery)
 This hook is called before an image is rendered by Parser. More...
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "BeforeParserFetchFileAndTitle" to register handlers implementing this interface.

Stable to implement

Definition at line 15 of file BeforeParserFetchFileAndTitleHook.php.

Member Function Documentation

◆ onBeforeParserFetchFileAndTitle()

MediaWiki\Hook\BeforeParserFetchFileAndTitleHook::onBeforeParserFetchFileAndTitle (   $parser,
  $nt,
$options,
$descQuery 
)

This hook is called before an image is rendered by Parser.

Since
1.35
Parameters
Parser$parser
Title$ntImage title
array&$optionsArray of options to RepoGroup::findFile. If it contains 'broken' as a key then the file will appear as a broken thumbnail. If it contains private as a key, the value must be a User object.
string&$descQueryQuery string to add to thumbnail URL
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: