Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | List of all members
SMW\MediaWiki\Hooks\ResourceLoaderGetConfigVars Class Reference
Inheritance diagram for SMW\MediaWiki\Hooks\ResourceLoaderGetConfigVars:
Inheritance graph
[legend]
Collaboration diagram for SMW\MediaWiki\Hooks\ResourceLoaderGetConfigVars:
Collaboration graph
[legend]

Public Member Functions

 __construct (NamespaceInfo $namespaceInfo)
 
 process (array &$vars)
 

Public Attributes

const OPTION_KEYS
 

Detailed Description

Hook: ResourceLoaderGetConfigVars called right before ResourceLoaderStartUpModule::getConfig and exports static configuration variables to JavaScript. Things that depend on the current page/request state should use MakeGlobalVariablesScript instead

See also
https://www.mediawiki.org/wiki/Manual:Hooks/ResourceLoaderGetConfigVars

GNU GPL v2+

Since
2.0
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\MediaWiki\Hooks\ResourceLoaderGetConfigVars::__construct ( NamespaceInfo  $namespaceInfo)
Since
3.1
Parameters
NamespaceInfo$namespaceInfo

Member Function Documentation

◆ process()

SMW\MediaWiki\Hooks\ResourceLoaderGetConfigVars::process ( array &  $vars)
Since
1.9
Parameters
array$vars
Returns
boolean

Member Data Documentation

◆ OPTION_KEYS

const SMW\MediaWiki\Hooks\ResourceLoaderGetConfigVars::OPTION_KEYS
Initial value:
= [
'smwgQMaxLimit',
'smwgQMaxInlineLimit',
'smwgNamespacesWithSemanticLinks',
'smwgResultFormats'
]

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

About | General disclaimer | Privacy policy