MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onContentGetParserOutput ( $content, $title, $revId, $options, $generateHtml, &$output) | |
Use this hook to customize parser output for a given content object. | |
Stable to implement.
Definition at line 14 of file ContentGetParserOutputHook.php.
MediaWiki\Content\Hook\ContentGetParserOutputHook::onContentGetParserOutput | ( | $content, | |
$title, | |||
$revId, | |||
$options, | |||
$generateHtml, | |||
& | $output | ||
) |
Use this hook to customize parser output for a given content object.
This hook is called by AbstractContent::getParserOutput. May be used to override the normal model-specific rendering of page content.
Content | $content | Content to render |
Title | $title | Title of the page, as context |
int | $revId | Revision ID, as context |
ParserOptions | $options | ParserOptions for rendering. To avoid confusing the parser cache, the output can only depend on parameters provided to this hook function, not on global state. |
bool | $generateHtml | Whether full HTML should be generated. If false, generation of HTML may be skipped, but other information should still be present in the ParserOutput object. |
ParserOutput | &$output | ParserOutput to manipulate or replace |
Implemented in MediaWiki\HookContainer\HookRunner.