Page MenuHomeWickedGov Phorge

MobileConfig.php
No OneTemporary

Size
678 B
Referenced Files
None
Subscribers
None

MobileConfig.php

<?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

Mime Type
text/x-php
Expires
Sat, May 16, 13:29 (1 d, 4 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
aa/3b/ab3e99a7d851ff74dda79e1d2055
Default Alt Text
MobileConfig.php (678 B)

Event Timeline