Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P7854
(An Untitled Masterwork)
Active
Public
Actions
Authored by
Krinkle
on Nov 28 2018, 1:11 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F27320143:
Nov 28 2018, 1:11 AM
2018-11-28 01:11:58 (UTC+0)
Subscribers
None
<?php
class
ResourceLoaderExampleDataModule
extends
ResourceLoaderFileModule
{
/** @inheritDoc */
public
function
getScript
(
ResourceLoaderContext
$context
)
{
return
Xml
::
encodeJsCall
(
'mw.config.set'
,
[
$this
->
getData
()
]
)
.
parent
::
getScript
(
$context
);
}
/** @return bool */
public
function
enableModuleContentVersion
()
{
return
true
;
}
/** @return bool */
public
function
supportsURLLoading
()
{
return
false
;
}
}
Event Timeline
Krinkle
created this paste.
Nov 28 2018, 1:11 AM
2018-11-28 01:11:58 (UTC+0)
Krinkle
mentioned this in
T186062: Unused MobileFrontend/Minerva variables loaded on desktop/Vector page views
.
Nov 28 2018, 1:41 AM
2018-11-28 01:41:19 (UTC+0)
Log In to Comment