MediaWiki REL1_39
MediaWiki\Hook\EditPageGetDiffContentHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. 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

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "EditPageGetDiffContent" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 15 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: