Vector
Vector is a skin for MediaWiki. Vector has been the default skin on all Wikimedia wikis since 2010.
|
Public Member Functions | |
__construct (Config $config, UserIdentity $user, WebRequest $request, string $configName, string $requirementName) | |
This constructor accepts all dependencies needed to determine whether the overridable config is enabled for the current user and request. | |
getName () | |
@inheritDoc | |
isMet () | |
Check query parameter to override config or not. | |
isVector2022BetaFeatureEnabled () | |
Check if user has enabled the Vector 2022 beta features. | |
MediaWiki\Skins\Vector\FeatureManagement\Requirements\OverridableConfigRequirement::__construct | ( | Config | $config, |
UserIdentity | $user, | ||
WebRequest | $request, | ||
string | $configName, | ||
string | $requirementName ) |
This constructor accepts all dependencies needed to determine whether the overridable config is enabled for the current user and request.
Config | $config | |
UserIdentity | $user | |
WebRequest | $request | |
string | $configName | Any Config key. This name is used to query $config state. |
string | $requirementName | The name of the requirement presented to FeatureManager. |
MediaWiki\Skins\Vector\FeatureManagement\Requirements\OverridableConfigRequirement::getName | ( | ) |
@inheritDoc
Implements MediaWiki\Skins\Vector\FeatureManagement\Requirement.
MediaWiki\Skins\Vector\FeatureManagement\Requirements\OverridableConfigRequirement::isMet | ( | ) |
Check query parameter to override config or not.
Then check for AB test value. Fallback to config value.
@inheritDoc
Implements MediaWiki\Skins\Vector\FeatureManagement\Requirement.
MediaWiki\Skins\Vector\FeatureManagement\Requirements\OverridableConfigRequirement::isVector2022BetaFeatureEnabled | ( | ) |
Check if user has enabled the Vector 2022 beta features.