< Manual:Hooks
| RequestContextCreateSkin | |
|---|---|
| Available from version 1.19.0 Called when creating a skin instance. | |
| Define function: | public static function onRequestContextCreateSkin( IContextSource $context, Skin &$skin ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"RequestContextCreateSkin": "MyExtensionHooks::onRequestContextCreateSkin"
}
}
|
| Called from: | File(s): context/RequestContext.php Function(s): getSkin |
| Interface: | RequestContextCreateSkinHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:RequestContextCreateSkin extensions.
Details
$context: An IContextSource instance&$skin: Null (this is a variable reference you may set a Skin instance or string key on to override the skin that will be used for the context)
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.