MediaWiki master
MediaWiki\Diff\Hook\DiffToolsHook Interface Reference

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

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onDiffTools ( $newRevRecord, &$links, $oldRevRecord, $userIdentity)
 Use this hook to override or extend the revision tools available from the diff view, i.e.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 15 of file DiffToolsHook.php.

Member Function Documentation

◆ onDiffTools()

MediaWiki\Diff\Hook\DiffToolsHook::onDiffTools ( $newRevRecord,
& $links,
$oldRevRecord,
$userIdentity )

Use this hook to override or extend the revision tools available from the diff view, i.e.

undo, etc.

Since
1.35
Parameters
RevisionRecord$newRevRecordNew revision
string[]&$linksArray of HTML links
RevisionRecord | null$oldRevRecordOld revision (may be null)
UserIdentity$userIdentityCurrent user
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: