Paste P7854

(An Untitled Masterwork)
ActivePublic

Authored by Krinkle on Wed, Nov 28, 1:11 AM.
<?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;
}
}