MediaWiki  master
MediaWiki\Hook\UserGetLanguageObjectHook Interface Reference

Stable to implement. 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. More...
 

Detailed Description

Stable to implement.

Definition at line 12 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: