Manual:Hooks/OutputPageParserOutput
OutputPageParserOutput | |
---|---|
Available from version 1.6.0 Called after parse, before the HTML is added to the output | |
Define function: | public static function onOutputPageParserOutput( OutputPage $out, ParserOutput $parserOutput ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"OutputPageParserOutput": "MyExtensionHooks::onOutputPageParserOutput"
}
}
|
Called from: | File(s): OutputPage.php |
Interface: | OutputPageParserOutputHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:OutputPageParserOutput extensions.
Details[edit]
- $out: the OutputPage (object) to which wikitext is added
- $parserOutput: - a ParserOutput object.