Manual:Hooks/ResourceLoaderGetConfigVars/de-formal

Details
ResourceLoaderStartUpModule::getConfig runs this hook. Use it to export static configuration variables to JavaScript. Values that depend on the current page, user or request state must be added through instead.


 * &$vars - Array of variables to be added into the output of the startup module.
 * $skin - Current skin name to restrict config variables to a certain skin (if needed)
 * $config -

Example
Register the configuration variables from the hook:

Retrieve them using, like: