MediaWiki
master
|
This is a hook handler interface, see docs/Hooks.md. More...
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... | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "DiffRevisionTools" to register handlers implementing this interface.
Definition at line 15 of file DiffRevisionToolsHook.php.
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.
Revision | $newRev | New revision |
string[] | &$links | Array of HTML links |
Revision | null | $oldRev | Old revision (may be null) |
User | $user | Current user |
Implemented in MediaWiki\HookContainer\HookRunner.