|
MediaWiki REL1_39
|
This is a hook handler interface, see docs/Hooks.md. More...

Public Member Functions | |
| onContentGetParserOutput ( $content, $title, $revId, $options, $generateHtml, &$output) | |
| Use this hook to customize parser output for a given content object. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ContentGetParserOutput" to register handlers implementing this interface.
Definition at line 17 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.