Manual:Hooks/ResourceLoaderGetConfigVars

From MediaWiki.org
Jump to: navigation, search
ResourceLoaderGetConfigVars
Available from version 1.17.0
called right before ResourceLoaderStartUpModule::getConfig returns.

Define function:
public static function onResourceLoaderGetConfigVars( &$vars ) { ... }

Attach hook:
$wgHooks['ResourceLoaderGetConfigVars'][] = 'MyExtensionHooks::onResourceLoaderGetConfigVars';
Called from: ResourceLoaderStartUpModule.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ResourceLoaderGetConfigVars extensions.


[edit] Details

  • &$vars: Array of variables to be added into the output of the startup module.

[edit] See also

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox