MediaWiki  master
MediaWiki\Hook\RequestContextCreateSkinHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\RequestContextCreateSkinHook:

Public Member Functions

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

Detailed Description

Stable to implement.

Definition at line 12 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
Skin | string&$skinVariable reference you may 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: