|
MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
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. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ParserMakeImageParams" to register handlers implementing this interface.
Definition at line 16 of file ParserMakeImageParamsHook.php.
| MediaWiki\Parser\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.
| Title | $title | Title object representing the file |
| File | $file | File object that will be used to create the image |
| array | &$params | Two-dimensional array of parameters |
| Parser | $parser | Parser object that called the hook |
Implemented in MediaWiki\HookContainer\HookRunner.