MediaWiki REL1_37
MediaWiki\Hook\ParserMakeImageParamsHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. 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

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

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

Stability: stable
to implement

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