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 "TranslateEventMessageGroupStateChange" to register handlers implementing this interface. |
11 | * |
12 | * @stable to implement |
13 | * @ingroup Hooks |
14 | */ |
15 | interface EventMessageGroupStateChangeHook { |
16 | /** |
17 | * Event triggered when a message group workflow state is changed in a language |
18 | * |
19 | * @param MessageGroup $group Message group instance |
20 | * @param string $code Language code |
21 | * @param string|false $oldState |
22 | * @param string $newState |
23 | * @return bool|void True or no return value to continue or false to abort |
24 | */ |
25 | public function onTranslateEventMessageGroupStateChange( |
26 | MessageGroup $group, |
27 | string $code, |
28 | $oldState, |
29 | string $newState |
30 | ); |
31 | } |