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\Utilities; |
5 | |
6 | /** |
7 | * This is a hook handler interface, see docs/Hooks.md in core. |
8 | * Use the hook name "TranslateSupportedLanguages" to register handlers implementing this interface. |
9 | * |
10 | * @stable to implement |
11 | * @ingroup Hooks |
12 | */ |
13 | interface SupportedLanguagesHook { |
14 | /** |
15 | * Allows removing languages from language selectors. For adding $wgExtraLanguage names is recommended. |
16 | * |
17 | * @param string[] &$list List of languages indexed by language code |
18 | * @param string|null $language Language code of the language of which language names are in |
19 | * @return bool|void True or no return value to continue or false to abort |
20 | */ |
21 | public function onTranslateSupportedLanguages( array &$list, ?string $language ); |
22 | } |