MediaWiki REL1_35
MediaWiki\Hook\EditPageGetDiffContentHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\EditPageGetDiffContentHook:

Public Member Functions

 onEditPageGetDiffContent ( $editPage, &$newtext)
 Use this hook to modify the wikitext that will be used in "Show changes".
 

Detailed Description

Stable to implement.

Definition at line 12 of file EditPageGetDiffContentHook.php.

Member Function Documentation

◆ onEditPageGetDiffContent()

MediaWiki\Hook\EditPageGetDiffContentHook::onEditPageGetDiffContent (   $editPage,
$newtext 
)

Use this hook to modify the wikitext that will be used in "Show changes".

Note that it is preferable to implement diff handling for different data types using the ContentHandler facility.

Since
1.35
Parameters
EditPage$editPage
Content&$newtextContent that will be used in place of "Show changes"
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


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