Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\Modules\RepoAccessModule Class Reference

JavaScript variables needed to access the repo independent from the current working wiki. More...

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

Public Member Functions

 getScript (ResourceLoaderContext $context)
 This one lets the client JavaScript know where it can find the API and the article path of the repo. More...
 

Protected Attributes

 $targets = [ 'desktop', 'mobile' ]
 

Detailed Description

JavaScript variables needed to access the repo independent from the current working wiki.

Author
Marius Hoch < hoo@o.nosp@m.nlin.nosp@m.e.de >

Member Function Documentation

◆ getScript()

Wikibase\Lib\Modules\RepoAccessModule::getScript ( ResourceLoaderContext  $context)

This one lets the client JavaScript know where it can find the API and the article path of the repo.

See also
ResourceLoaderModule::getScript
Parameters
ResourceLoaderContext$context
Returns
string

Member Data Documentation

◆ $targets

Wikibase\Lib\Modules\RepoAccessModule::$targets = [ 'desktop', 'mobile' ]
protected

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