MediaWiki  master
DiffToolsHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Diff\Hook;
4 
7 
15 interface DiffToolsHook {
28  public function onDiffTools( $newRevRecord, &$links, $oldRevRecord, $userIdentity );
29 }
MediaWiki\Revision\RevisionRecord
Page revision base class.
Definition: RevisionRecord.php:47
MediaWiki\Diff\Hook
Definition: AbortDiffCacheHook.php:3
MediaWiki\User\UserIdentity
Interface for objects representing user identity.
Definition: UserIdentity.php:39
MediaWiki\Diff\Hook\DiffToolsHook
This is a hook handler interface, see docs/Hooks.md.
Definition: DiffToolsHook.php:15
MediaWiki\Diff\Hook\DiffToolsHook\onDiffTools
onDiffTools( $newRevRecord, &$links, $oldRevRecord, $userIdentity)
Use this hook to override or extend the revision tools available from the diff view,...