MediaWiki REL1_35
MediaWiki\Hook\ParserMakeImageParamsHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\ParserMakeImageParamsHook:

Public Member Functions

 onParserMakeImageParams ( $title, $file, &$params, $parser)
 This hook is called before the parser generates an image link, use this to modify the parameters of the image.
 

Detailed Description

Stable to implement.

Definition at line 13 of file ParserMakeImageParamsHook.php.

Member Function Documentation

◆ onParserMakeImageParams()

MediaWiki\Hook\ParserMakeImageParamsHook::onParserMakeImageParams (   $title,
  $file,
$params,
  $parser 
)

This hook is called before the parser generates an image link, use this to modify the parameters of the image.

Since
1.35
Parameters
Title$titleTitle object representing the file
File$fileFile object that will be used to create the image
array&$paramsTwo-dimensional array of parameters
Parser$parserParser object that called the hook
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: