MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onResourceLoaderGetConfigVars (array &$vars, $skin, Config $config) | |
Export static site-wide mw.config variables to JavaScript. | |
Stable to implement.
Definition at line 11 of file ResourceLoaderGetConfigVarsHook.php.
MediaWiki\ResourceLoader\Hook\ResourceLoaderGetConfigVarsHook::onResourceLoaderGetConfigVars | ( | array & | $vars, |
$skin, | |||
Config | $config | ||
) |
Export static site-wide mw.config
variables to JavaScript.
Variables that depend on the current page or request state must be added through MediaWiki\Hook\MakeGlobalVariablesScriptHook instead. The skin name is made available to send skin-specific config only when needed.
This hook is called from ResourceLoaderStartUpModule.
array | &$vars | [ variable name => value ] |
string | $skin | |
Config | $config | since 1.34 |
Implemented in MediaWiki\HookContainer\HookRunner.