MediaWiki
master
ParserModifyImageHTMLHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Hook
;
4
5
use
MediaWiki\FileRepo\File\File
;
6
use
MediaWiki\Parser\Parser
;
7
15
interface
ParserModifyImageHTMLHook
{
28
public
function
onParserModifyImageHTML
(
Parser
$parser,
File
$file,
29
array $params,
string
&$html ): void;
30
}
31
33
class_alias( ParserModifyImageHTMLHook::class,
'MediaWiki\Hook\ParserModifyImageHTML'
);
MediaWiki\FileRepo\File\File
Implements some public methods and some protected utility functions which are required by multiple ch...
Definition
File.php:93
MediaWiki\Parser\Parser
PHP Parser - Processes wiki markup (which uses a more user-friendly syntax, such as "[[link]]" for ma...
Definition
Parser.php:147
MediaWiki\Hook\ParserModifyImageHTMLHook
This is a hook handler interface, see docs/Hooks.md.
Definition
ParserModifyImageHTMLHook.php:15
MediaWiki\Hook\ParserModifyImageHTMLHook\onParserModifyImageHTML
onParserModifyImageHTML(Parser $parser, File $file, array $params, string &$html)
This hook is called for each image added to parser output, with its associated HTML as returned from ...
MediaWiki\Hook
Definition
ActionBeforeFormDisplayHook.php:3
includes
parser
Hook
ParserModifyImageHTMLHook.php
Generated on Sat Apr 5 2025 21:25:33 for MediaWiki by
1.10.0