Manual:Hooks/DifferenceEngineRenderRevisionAddParserOutput
Appearance
DifferenceEngineRenderRevisionAddParserOutput | |
---|---|
Available from version 1.29.0 (Gerrit change 298026) Allows extensions to change the parser output. Return false to not add parser output via OutputPage's addParserOutput method. | |
Define function: | public static function onDifferenceEngineRenderRevisionAddParserOutput( DifferenceEngine $differenceEngine, OutputPage $out, ParserOutput $parserOutput, WikiPage $wikiPage ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"DifferenceEngineRenderRevisionAddParserOutput": "MediaWiki\\Extension\\MyExtension\\Hooks::onDifferenceEngineRenderRevisionAddParserOutput"
}
}
|
Called from: | File(s): diff/DifferenceEngine.php Function(s): renderNewRevision |
Interface: | DifferenceEngineRenderRevisionAddParserOutputHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:DifferenceEngineRenderRevisionAddParserOutput extensions.
Details
[edit]$differenceEngine
: DifferenceEngine object$out
: OutputPage object$parserOutput
: ParserOutput object$wikiPage
: WikiPage object