MediaWiki  master
ParserMakeImageParamsHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Hook;
4 
5 use File;
6 use Parser;
7 use Title;
8 
29  public function onParserMakeImageParams( $title, $file, &$params, $parser );
30 }
MediaWiki\Hook\ParserMakeImageParamsHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ParserMakeImageParamsHook.php:16
MediaWiki\Hook
Definition: ActionBeforeFormDisplayHook.php:3
$file
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) $file
Item class for a filearchive table row.
Definition: router.php:42
File
Implements some public methods and some protected utility functions which are required by multiple ch...
Definition: File.php:63
$title
$title
Definition: testCompression.php:38
Parser
PHP Parser - Processes wiki markup (which uses a more user-friendly syntax, such as "[[link]]" for ma...
Definition: Parser.php:84
MediaWiki\Hook\ParserMakeImageParamsHook\onParserMakeImageParams
onParserMakeImageParams( $title, $file, &$params, $parser)
This hook is called before the parser generates an image link, use this to modify the parameters of t...
Title
Represents a title within MediaWiki.
Definition: Title.php:41