Manual:Hooks/AjaxAddScript
This feature was removed completely in version 1.24.0. |
AjaxAddScript | |
---|---|
Available from version 1.9.1 Removed in version 1.24.0 Called in output page just before the initialization | |
Define function: | public static function onAjaxAddScript( &$out ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"AjaxAddScript": "MediaWiki\\Extension\\MyExtension\\Hooks::onAjaxAddScript"
}
}
|
Called from: | File(s): OutputPage.php |
Interface: | AjaxAddScriptHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:AjaxAddScript extensions.
Details
edit- &$out: OutputPage object
Notes
edit- This hook is only called when ajax is enabled (
$wgUseAjax = true
)