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 MediaWiki\Context\IContextSource; |
6 | use TextSlotDiffRenderer; |
7 | |
8 | /** |
9 | * This is a hook handler interface, see docs/Hooks.md. |
10 | * Use the hook name "TextSlotDiffRendererTablePrefix" to register handlers implementing this interface. |
11 | * |
12 | * @stable to implement |
13 | * @ingroup Hooks |
14 | */ |
15 | interface TextSlotDiffRendererTablePrefixHook { |
16 | |
17 | /** |
18 | * Use this hook to change the HTML that is included in a prefix container directly before the diff table. |
19 | * |
20 | * @since 1.41 |
21 | * |
22 | * @param TextSlotDiffRenderer $textSlotDiffRenderer |
23 | * @param IContextSource $context |
24 | * @param (string|null)[] &$parts HTML strings to add to a container above the diff table. |
25 | * Will be sorted by key before being output. |
26 | * @return bool|void True or no return value to continue or false to abort |
27 | */ |
28 | public function onTextSlotDiffRendererTablePrefix( |
29 | TextSlotDiffRenderer $textSlotDiffRenderer, |
30 | IContextSource $context, |
31 | array &$parts |
32 | ); |
33 | } |