Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5967033
StubUserLang.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
529 B
Referenced Files
None
Subscribers
None
StubUserLang.php
View Options
<?php
// phpcs:disable PSR2.Methods.MethodDeclaration.Underscore
/**
* @license GPL-2.0-or-later
* @file
*/
namespace
MediaWiki\StubObject
;
use
MediaWiki\Context\RequestContext
;
use
MediaWiki\Language\Language
;
/**
* Stub object for the user language. Assigned to the $wgLang global.
*/
class
StubUserLang
extends
StubObject
{
public
function
__construct
()
{
parent
::
__construct
(
'wgLang'
);
}
/**
* @return Language
*/
public
function
_newObject
()
{
return
RequestContext
::
getMain
()->
getLanguage
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 12:05 (3 d, 12 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
51/25/63fbf4c2e2c496c0a1fff42ebf14
Default Alt Text
StubUserLang.php (529 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment