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 | declare( strict_types = 1 ); |
3 | |
4 | namespace MediaWiki\Extension\Translate\MessageGroupProcessing; |
5 | |
6 | use MessageGroup; |
7 | |
8 | /** |
9 | * This is a hook handler interface, see docs/Hooks.md in core. |
10 | * Use the hook name "TranslateProcessAPIMessageGroupsProperties" to register handlers implementing this interface. |
11 | * |
12 | * @stable to implement |
13 | * @ingroup Hooks |
14 | */ |
15 | interface ProcessAPIMessageGroupsPropertiesHook { |
16 | /** |
17 | * Allows extra property requests to be acted upon, and the new properties returned |
18 | * |
19 | * @param array &$a Associative array of the properties of $group that will be returned |
20 | * @param array $props Associative array ($name => true) of properties the user has specifically requested |
21 | * @param array $params Parameter input by the user (unprefixed name => value) |
22 | * @param MessageGroup $g The group in question |
23 | * @return bool|void True or no return value to continue or false to abort |
24 | */ |
25 | public function onTranslateProcessAPIMessageGroupsProperties( |
26 | array &$a, |
27 | array $props, |
28 | array $params, |
29 | MessageGroup $g |
30 | ); |
31 | } |