MediaWiki REL1_39
MediaWiki\Hook\UserGetLanguageObjectHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Hook\UserGetLanguageObjectHook:

Public Member Functions

 onUserGetLanguageObject ( $user, &$code, $context)
 This hook is called when getting a user's interface language object.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "UserGetLanguageObject" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 15 of file UserGetLanguageObjectHook.php.

Member Function Documentation

◆ onUserGetLanguageObject()

MediaWiki\Hook\UserGetLanguageObjectHook::onUserGetLanguageObject ( $user,
& $code,
$context )

This hook is called when getting a user's interface language object.

Since
1.35
Parameters
User$user
string&$codeLanguage code that will be used to create the object
IContextSource$context
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: