Vector
Vector is a skin for MediaWiki. Vector has been the default skin on all Wikimedia wikis since 2010.
Loading...
Searching...
No Matches
MediaWiki\Skins\Vector\FeatureManagement\Requirements\OverridableConfigRequirement Class Reference
+ Inheritance diagram for MediaWiki\Skins\Vector\FeatureManagement\Requirements\OverridableConfigRequirement:
+ Collaboration diagram for MediaWiki\Skins\Vector\FeatureManagement\Requirements\OverridableConfigRequirement:

Public Member Functions

 __construct (Config $config, User $user, WebRequest $request, ?CentralIdLookup $centralIdLookup, string $configName, string $requirementName, ?string $overrideName=null, ?string $configTestName=null)
 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.
 

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Skins\Vector\FeatureManagement\Requirements\OverridableConfigRequirement::__construct ( Config $config,
User $user,
WebRequest $request,
?CentralIdLookup $centralIdLookup,
string $configName,
string $requirementName,
?string $overrideName = null,
?string $configTestName = null )

This constructor accepts all dependencies needed to determine whether the overridable config is enabled for the current user and request.

Parameters
Config$config
User$user
WebRequest$request
CentralIdLookup | null$centralIdLookup
string$configNameAny Config key. This name is used to query $config state.
string$requirementNameThe name of the requirement presented to FeatureManager.
string | null$overrideNameThe name of the override presented to FeatureManager, i.e. query parameter. When not set defaults to lowercase version of config key.
string | null$configTestNameThe name of the AB test config presented to FeatureManager if applicable.

Member Function Documentation

◆ getName()

MediaWiki\Skins\Vector\FeatureManagement\Requirements\OverridableConfigRequirement::getName ( )

◆ isMet()

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.


The documentation for this class was generated from the following file: