Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Modules\MediaWikiConfigModule Class Reference

Generic, reusable ResourceLoader module to set a JavaScript configuration variable via mw.config.set. More...

+ Inheritance diagram for Wikibase\Lib\Modules\MediaWikiConfigModule:
+ Collaboration diagram for Wikibase\Lib\Modules\MediaWikiConfigModule:

Public Member Functions

 __construct (array $options)
 
 enableModuleContentVersion ()
 

Protected Attributes

 $targets
 

Private Attributes

 $getConfigValueProvider
 

Detailed Description

Generic, reusable ResourceLoader module to set a JavaScript configuration variable via mw.config.set.

Author
Adrian Heine adria.nosp@m.n.he.nosp@m.ine@w.nosp@m.ikim.nosp@m.edia..nosp@m.de

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Modules\MediaWikiConfigModule::__construct ( array  $options)
Parameters
array$optionsResourceLoader module options. Must include a "getconfigvalueprovider" callable that returns a MediaWikiConfigValueProvider when called. May include 'targets'. No other options supported yet.

Member Function Documentation

◆ enableModuleContentVersion()

Wikibase\Lib\Modules\MediaWikiConfigModule::enableModuleContentVersion ( )
Returns
bool Always true.

Member Data Documentation

◆ $getConfigValueProvider

Wikibase\Lib\Modules\MediaWikiConfigModule::$getConfigValueProvider
private

◆ $targets

Wikibase\Lib\Modules\MediaWikiConfigModule::$targets
protected

The documentation for this class was generated from the following file: