This is a hook handler interface, see docs/Hooks.md in core. More...
Public Member Functions | |
onTranslateSupportedLanguages (array &$list, ?string $language) | |
Allows removing languages from language selectors. | |
This is a hook handler interface, see docs/Hooks.md in core.
Use the hook name "TranslateSupportedLanguages" to register handlers implementing this interface.
@stable to implement
Definition at line 13 of file SupportedLanguagesHook.php.
MediaWiki\Extension\Translate\Utilities\SupportedLanguagesHook::onTranslateSupportedLanguages | ( | array & | $list, |
?string | $language ) |
Allows removing languages from language selectors.
For adding $wgExtraLanguage names is recommended.
string[] | &$list | List of languages indexed by language code |
string | null | $language | Language code of the language of which language names are in |
Implemented in MediaWiki\Extension\Translate\HookRunner.