blob: dc468bdf4895a6f5c55adfab4a897cde8de04551 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
namespace MediaWiki\Diff\Hook;
/**
* @stable for implementation
* @ingroup Hooks
*/
interface DiffRevisionToolsHook {
/**
* Override or extend the revision tools available from the
* diff view, i.e. undo, etc.
*
* @since 1.35
*
* @param ?mixed $newRev Revision object of the "new" revision
* @param ?mixed &$links Array of HTML links
* @param ?mixed $oldRev Revision object of the "old" revision (may be null)
* @param ?mixed $user Current user object
* @return bool|void True or no return value to continue or false to abort
*/
public function onDiffRevisionTools( $newRev, &$links, $oldRev, $user );
}
|