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 | // phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName |
5 | |
6 | namespace MediaWiki\Extension\Translate\MessageGroupProcessing; |
7 | |
8 | /** |
9 | * This is a hook handler interface, see docs/Hooks.md in core. |
10 | * Use the hook name "Translate:modifyMessageGroupStates" to register handlers implementing this interface. |
11 | * |
12 | * @stable to implement |
13 | * @ingroup Hooks |
14 | */ |
15 | interface ModifyMessageGroupStatesHook { |
16 | /** |
17 | * Allow hooks to change workflow states depending on the group's ID |
18 | * |
19 | * @param string $groupId ID of the current message group |
20 | * @param array &$conf Workflow states, can be modified |
21 | * @return bool|void True or no return value to continue or false to abort |
22 | */ |
23 | public function onTranslate_modifyMessageGroupStates( string $groupId, array &$conf ); |
24 | } |