Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Diff\Hook; |
4 | |
5 | use DifferenceEngine; |
6 | |
7 | /** |
8 | * This is a hook handler interface, see docs/Hooks.md. |
9 | * Use the hook name "DifferenceEngineShowDiffPageMaybeShowMissingRevision" to register |
10 | * handlers implementing this interface. |
11 | * |
12 | * @stable to implement |
13 | * @ingroup Hooks |
14 | */ |
15 | interface DifferenceEngineShowDiffPageMaybeShowMissingRevisionHook { |
16 | /** |
17 | * This hook is called in DifferenceEngine::showDiffPage() when revision |
18 | * data cannot be loaded. |
19 | * |
20 | * @since 1.35 |
21 | * |
22 | * @param DifferenceEngine $differenceEngine |
23 | * @return bool|void True or no return value to continue, or false to |
24 | * prevent displaying the missing revision message (i.e. to prevent |
25 | * DifferenceEngine::showMissingRevision() from being called) |
26 | */ |
27 | public function onDifferenceEngineShowDiffPageMaybeShowMissingRevision( |
28 | $differenceEngine |
29 | ); |
30 | } |