MediaWiki REL1_39
MediaWiki\Hook\RequestContextCreateSkinHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Hook\RequestContextCreateSkinHook:

Public Member Functions

 onRequestContextCreateSkin ( $context, &$skin)
 This hook is called when RequestContext::getSkin creates a skin instance.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "RequestContextCreateSkin" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 15 of file RequestContextCreateSkinHook.php.

Member Function Documentation

◆ onRequestContextCreateSkin()

MediaWiki\Hook\RequestContextCreateSkinHook::onRequestContextCreateSkin ( $context,
& $skin )

This hook is called when RequestContext::getSkin creates a skin instance.

Use this hook to override what skin is used in certain contexts.

Since
1.35
Parameters
IContextSource$contextRequestContext the skin is being created for
null | string | Skin&$skinA variable reference you may modify to set a Skin instance or string key on to override the skin that will be used for the context.
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: