MediaWiki REL1_35
MediaWiki\Hook\BeforeParserFetchFileAndTitleHook Interface Reference

Stable to implement. 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.
 

Detailed Description

Stable to implement.

Definition at line 12 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.
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: