MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
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. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "GetLangPreferredVariant" to register handlers implementing this interface.
Definition at line 12 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.