MediaWiki  master
MediaWiki\Hook\HistoryRevisionToolsHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\HistoryRevisionToolsHook:

Public Member Functions

 onHistoryRevisionTools ( $rev, &$links, $prevRev, $user)
 Use this hook to override or extend the revision tools available from the page history view, i.e. More...
 

Detailed Description

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

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

Deprecated:
since 1.35

Definition at line 15 of file HistoryRevisionToolsHook.php.

Member Function Documentation

◆ onHistoryRevisionTools()

MediaWiki\Hook\HistoryRevisionToolsHook::onHistoryRevisionTools (   $rev,
$links,
  $prevRev,
  $user 
)

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

undo, rollback, etc.

Since
1.35
Parameters
Revision$rev
string[]&$linksArray of HTML links
Revision | null$prevRevRevision object, next in line in page history, or null
User$userCurrent user object
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: