|
MediaWiki REL1_35
|
Stable to implement. More...

Public Member Functions | |
| onRequestContextCreateSkin ( $context, &$skin) | |
| This hook is called when RequestContext::getSkin creates a skin instance. | |
Stable to implement.
Definition at line 12 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 |
| Skin | string | &$skin | Variable reference you may set a Skin instance or string key on to override the skin that will be used for the context |
Implemented in MediaWiki\HookContainer\HookRunner.