MediaWiki  master
MediaWiki\Hook\EditPageGetDiffContentHook Interface Reference

Stable for implementation. 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". More...
 

Detailed Description

Stable for implementation.

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: