MediaWiki REL1_41
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\ResourceLoader\HookRunner.
Public Member Functions | |
onResourceLoaderGetConfigVars (array &$vars, $skin, Config $config) | |
Export static site-wide mw.config variables to JavaScript. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ResourceLoaderGetConfigVars" to register handlers implementing this interface.
Definition at line 14 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\ResourceLoader\HookRunner.