MediaWiki REL1_37
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onEditPageGetPreviewContent ( $editPage, &$content) | |
Use this hook to modify the wikitext that will be previewed. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "EditPageGetPreviewContent" to register handlers implementing this interface.
Definition at line 15 of file EditPageGetPreviewContentHook.php.
MediaWiki\Hook\EditPageGetPreviewContentHook::onEditPageGetPreviewContent | ( | $editPage, | |
& | $content | ||
) |
Use this hook to modify the wikitext that will be previewed.
Note that it is preferable to implement previews for different data types using the ContentHandler facility.
EditPage | $editPage | |
Content | &$content | Content object to be previewed (may be replaced by hook function) |
Implemented in MediaWiki\HookContainer\HookRunner.