Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1426618
MobileConfig.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
678 B
Referenced Files
None
Subscribers
None
MobileConfig.php
View Options
<?php
namespace
MobileFrontend\ResourceLoaderModules
;
use
MediaWiki\Html\Html
;
use
MediaWiki\ResourceLoader
as
RL
;
use
MobileFrontendEditorHooks
;
use
MobileFrontendHooks
;
/**
* A callback to deliver JavaScript config necessary for MobileFrontend.
*/
class
MobileConfig
{
/**
* @param RL\Context $context
* @return string
*/
public
static
function
makeScript
(
RL\Context
$context
)
{
return
Html
::
encodeJsCall
(
'mw.config.set'
,
[
self
::
getConfigData
()
]
);
}
/**
* @return array
*/
private
static
function
getConfigData
()
{
return
MobileFrontendHooks
::
getResourceLoaderMFConfigVars
()
+
MobileFrontendEditorHooks
::
getResourceLoaderMFConfigVars
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 13:29 (1 d, 6 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
aa/3b/ab3e99a7d851ff74dda79e1d2055
Default Alt Text
MobileConfig.php (678 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment