Vector
Vector is a skin for MediaWiki. Vector has been the default skin on all Wikimedia wikis since 2010.
Vector\FeatureManagement\Requirements\WvuiSearchTreatmentRequirement Class Reference
+ Inheritance diagram for Vector\FeatureManagement\Requirements\WvuiSearchTreatmentRequirement:
+ Collaboration diagram for Vector\FeatureManagement\Requirements\WvuiSearchTreatmentRequirement:

Public Member Functions

 __construct (\Config $config, \User $user)
 This constructor accepts all dependencies needed to determine whether wvui search is enabled for current user and config. More...
 
 getName ()
 @inheritDoc
 
 isMet ()
 If A/B test is enabled check whether the user is logged in and bucketed. More...
 

Constructor & Destructor Documentation

◆ __construct()

Vector\FeatureManagement\Requirements\WvuiSearchTreatmentRequirement::__construct ( \Config  $config,
\User  $user 
)

This constructor accepts all dependencies needed to determine whether wvui search is enabled for current user and config.

Parameters
\Config$config
\User$user

Member Function Documentation

◆ isMet()

Vector\FeatureManagement\Requirements\WvuiSearchTreatmentRequirement::isMet ( )

If A/B test is enabled check whether the user is logged in and bucketed.

Fallback to VectorUseWvuiSearch config value.

@inheritDoc

Exceptions

Implements Vector\FeatureManagement\Requirement.


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