MediaWiki fundraising/REL1_35
MediaWiki\Hook\HistoryToolsHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\HistoryToolsHook:

Public Member Functions

 onHistoryTools ( $revRecord, &$links, $prevRevRecord, $userIdentity)
 Use this hook to override or extend the revision tools available from the page history view, i.e.
 

Detailed Description

Stable to implement.

Definition at line 12 of file HistoryToolsHook.php.

Member Function Documentation

◆ onHistoryTools()

MediaWiki\Hook\HistoryToolsHook::onHistoryTools ( $revRecord,
& $links,
$prevRevRecord,
$userIdentity )

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
RevisionRecord$revRecord
string[]&$linksArray of HTML links
RevisionRecord | null$prevRevRecordRevisionRecord object, next in line in page history, or 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: