MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onContentAlterParserOutput ( $content, $title, $parserOutput) | |
Use this hook to modify parser output for a given content object. | |
Stable to implement.
Definition at line 13 of file ContentAlterParserOutputHook.php.
MediaWiki\Content\Hook\ContentAlterParserOutputHook::onContentAlterParserOutput | ( | $content, | |
$title, | |||
$parserOutput | |||
) |
Use this hook to modify parser output for a given content object.
This hook is called by Content::getParserOutput after parsing has finished. Can be used for changes that depend on the result of the parsing but have to be done before LinksUpdate is called (such as adding tracking categories based on the rendered HTML).
Content | $content | Content to render |
Title | $title | Title of the page, as context |
ParserOutput | $parserOutput | ParserOutput to manipulate |
Implemented in MediaWiki\HookContainer\HookRunner.