◆ getActiveABTest()
static MediaWiki\Skins\Vector\Hooks::getActiveABTest |
( |
RL\Context | $context, |
|
|
Config | $config ) |
|
static |
- Parameters
-
RL\Context | $context | |
Config | $config | |
- Returns
- array
◆ getVectorSearchResourceLoaderConfig()
static MediaWiki\Skins\Vector\Hooks::getVectorSearchResourceLoaderConfig |
( |
RL\Context | $context, |
|
|
Config | $config ) |
|
static |
Generates config variables for skins.vector.search Resource Loader module (defined in skin.json).
- Parameters
-
RL\Context | $context | |
Config | $config | |
- Returns
- array<string,mixed>
◆ onGetBetaFeaturePreferences()
MediaWiki\Skins\Vector\Hooks::onGetBetaFeaturePreferences |
( |
User | $user, |
|
|
array & | $betaFeatures ) |
Register Vector 2022 beta feature to the beta features list.
- Parameters
-
User | $user | User the preferences are for |
array | &$betaFeatures | |
◆ onGetPreferences()
MediaWiki\Skins\Vector\Hooks::onGetPreferences |
( |
| $user, |
|
|
& | $prefs ) |
Adds Vector specific user preferences that can only be accessed via API.
- Parameters
-
User | $user | User whose preferences are being modified. |
array[] | &$prefs | Preferences description array, to be fed to a HTMLForm object. |
◆ onLocalUserCreated()
MediaWiki\Skins\Vector\Hooks::onLocalUserCreated |
( |
| $user, |
|
|
| $isAutoCreated ) |
Called one time when initializing a users preferences for a newly created account.
- Parameters
-
User | $user | Newly created user object. |
bool | $isAutoCreated | |
◆ onResourceLoaderSiteModulePages()
MediaWiki\Skins\Vector\Hooks::onResourceLoaderSiteModulePages |
( |
| $skin, |
|
|
& | $pages ) |
Adds MediaWiki:Vector.css as the skin style that controls classic Vector.
- Parameters
-
◆ onResourceLoaderSiteStylesModulePages()
MediaWiki\Skins\Vector\Hooks::onResourceLoaderSiteStylesModulePages |
( |
| $skin, |
|
|
& | $pages ) |
Adds MediaWiki:Vector.css as the skin style that controls classic Vector.
- Parameters
-
◆ onSkinPageReadyConfig()
MediaWiki\Skins\Vector\Hooks::onSkinPageReadyConfig |
( |
RL\Context | $context, |
|
|
array & | $config ) |
SkinPageReadyConfig hook handler.
Replace searchModule provided by skin.
- Since
- 1.35
- Parameters
-
RL\Context | $context | |
mixed[] | &$config | Associative array of configurable options |
- Returns
- void This hook must not abort, it must return no value
◆ onSkinTemplateNavigation()
static MediaWiki\Skins\Vector\Hooks::onSkinTemplateNavigation |
( |
| $sk, |
|
|
& | $content_navigation ) |
|
static |
The documentation for this class was generated from the following file: