MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onRequestContextCreateSkin ( $context, &$skin) | |
This hook is called when RequestContext::getSkin creates a skin instance. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "RequestContextCreateSkin" to register handlers implementing this interface.
Definition at line 15 of file RequestContextCreateSkinHook.php.
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.
IContextSource | $context | RequestContext the skin is being created for |
null | string | Skin | &$skin | A 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. |
Implemented in MediaWiki\HookContainer\HookRunner.