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
Aug 19 2026, 23:24 (8 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
34/10/e899642999339a6bb6d0a4c708ba
Default Alt Text
MobileConfig.php (678 B)

Event Timeline