MediaWiki fundraising/REL1_35
|
Stable to implement. More...
Public Member Functions | |
onGetLangPreferredVariant (&$req) | |
This hook is called in LanguageConverter::getPreferredVariant() to allow fetching the language variant code from cookies or other such alternative storage. | |
Stable to implement.
Definition at line 9 of file GetLangPreferredVariantHook.php.
MediaWiki\Hook\GetLangPreferredVariantHook::onGetLangPreferredVariant | ( | & | $req | ) |
This hook is called in LanguageConverter::getPreferredVariant() to allow fetching the language variant code from cookies or other such alternative storage.
string | null | &$req | Language variant from the URL or null if no variant was specified in the URL; the value of this variable comes from LanguageConverter::getURLVariant() |
Implemented in MediaWiki\HookContainer\HookRunner.