MediaWiki REL1_35
MediaWiki\Hook\AlternateEditPreviewHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\AlternateEditPreviewHook:

Public Member Functions

 onAlternateEditPreview ( $editPage, &$content, &$previewHTML, &$parserOutput)
 This hook is called before generating the preview of the page when editing ( EditPage::getPreviewText() ).
 

Detailed Description

Stable to implement.

Definition at line 13 of file AlternateEditPreviewHook.php.

Member Function Documentation

◆ onAlternateEditPreview()

MediaWiki\Hook\AlternateEditPreviewHook::onAlternateEditPreview (   $editPage,
$content,
$previewHTML,
$parserOutput 
)

This hook is called before generating the preview of the page when editing ( EditPage::getPreviewText() ).

Since
1.35
Parameters
EditPage$editPage
Content&$contentContent object for the text field from the edit page
string&$previewHTMLText to be placed into the page for the preview
ParserOutput&$parserOutputParserOutput object for the preview
Returns
bool|void True or no return value to continue, or false and set $previewHTML and $parserOutput to output custom page preview HTML

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: