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\LimitedWidthContentRequirement Class Reference
+ Inheritance diagram for MediaWiki\Skins\Vector\FeatureManagement\Requirements\LimitedWidthContentRequirement:
+ Collaboration diagram for MediaWiki\Skins\Vector\FeatureManagement\Requirements\LimitedWidthContentRequirement:

Public Member Functions

 __construct (Config $config, WebRequest $request, $title=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\LimitedWidthContentRequirement::__construct ( Config $config,
WebRequest $request,
$title = null )

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

Parameters
Config$config
WebRequest$request
Title | null$titlecan be null in testing environment

Member Function Documentation

◆ getName()

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

◆ isMet()

MediaWiki\Skins\Vector\FeatureManagement\Requirements\LimitedWidthContentRequirement::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: