< Manual:Hooks
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": "MyExtensionHooks::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

  • $context: A ResourceLoaderContext instance
  • &$config: Associative array of configurable options
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.