MediaWiki  master
MediaWiki\Diff\Hook\DiffRevisionToolsHook Interface Reference
Inheritance diagram for MediaWiki\Diff\Hook\DiffRevisionToolsHook:

Public Member Functions

 onDiffRevisionTools ( $newRev, &$links, $oldRev, $user)
 Use this hook to override or extend the revision tools available from the diff view, i.e. More...
 

Detailed Description

Deprecated:
since 1.35

Definition at line 12 of file DiffRevisionToolsHook.php.

Member Function Documentation

◆ onDiffRevisionTools()

MediaWiki\Diff\Hook\DiffRevisionToolsHook::onDiffRevisionTools (   $newRev,
$links,
  $oldRev,
  $user 
)

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

undo, etc.

Since
1.35
Parameters
Revision$newRevNew revision
string[]&$linksArray of HTML links
Revision | null$oldRevOld revision (may be null)
User$userCurrent 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: