MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onMakeGlobalVariablesScript (&$vars, $out) | |
This hook is called at end of OutputPage::getJSVars. | |
Stable to implement.
Definition at line 11 of file MakeGlobalVariablesScriptHook.php.
MediaWiki\Hook\MakeGlobalVariablesScriptHook::onMakeGlobalVariablesScript | ( | & | $vars, |
$out | |||
) |
This hook is called at end of OutputPage::getJSVars.
Ideally, this hook should only be used to add variables that depend on the current page/request; static configuration should be added through ResourceLoaderGetConfigVars instead.
array | &$vars | Variable (or multiple variables) to be added into the output of Skin::makeVariablesScript |
OutputPage | $out | OutputPage which called the hook, can be used to get the real title |
Implemented in MediaWiki\HookContainer\HookRunner.