Manual:Hooks/SkinPageReadyConfig

SkinPageReadyConfig
Available from version 1.36.0 (Gerrit change 610752)
Allows skins to change the `mediawiki.page.ready` module configuration.
Define function:
public static function onSkinPageReadyConfig( ResourceLoaderContext $context, array &$config ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"SkinPageReadyConfig": "MediaWiki\\Extension\\MyExtension\\Hooks::onSkinPageReadyConfig"
	}
}
Called from: File(s): ../resources/Resources.php
Interface: SkinPageReadyConfigHook.php

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


Parameters

edit
  • $context: A ResourceLoaderContext instance
  • &$config: Associative array of configurable options