Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4072647
UserGetLanguageObjectHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
729 B
Referenced Files
None
Subscribers
None
UserGetLanguageObjectHook.php
View Options
<?php
namespace
MediaWiki\Hook
;
use
MediaWiki\Context\IContextSource
;
use
MediaWiki\User\User
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "UserGetLanguageObject" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
UserGetLanguageObjectHook
{
/**
* This hook is called when getting a user's interface language object.
*
* @since 1.35
*
* @param User $user
* @param string &$code Language code that will be used to create the object
* @param IContextSource $context
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onUserGetLanguageObject
(
$user
,
&
$code
,
$context
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 17 2026, 08:26 (11 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e8/4c/a761fbc85f79547f70ffa46f1250
Default Alt Text
UserGetLanguageObjectHook.php (729 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment