Vector
Vector is a skin for MediaWiki. Vector has been the default skin on all Wikimedia wikis since 2010.
|
Public Member Functions | |
__construct (User $user, UserOptionsLookup $userOptionsLookup, string $optionName, string $requirementName, $title=null) | |
This constructor accepts all dependencies needed to determine whether the overridable config is enabled for the current user and request. | |
getName () | |
@inheritDoc | |
isPreferenceEnabled () | |
Checks whether the user preference is enabled or not. | |
isMet () | |
@inheritDoc | |
MediaWiki\Skins\Vector\FeatureManagement\Requirements\UserPreferenceRequirement::__construct | ( | User | $user, |
UserOptionsLookup | $userOptionsLookup, | ||
string | $optionName, | ||
string | $requirementName, | ||
$title = null ) |
This constructor accepts all dependencies needed to determine whether the overridable config is enabled for the current user and request.
User | $user | |
UserOptionsLookup | $userOptionsLookup | |
string | $optionName | The name of the user preference. |
string | $requirementName | The name of the requirement presented to FeatureManager. |
Title | null | $title |
MediaWiki\Skins\Vector\FeatureManagement\Requirements\UserPreferenceRequirement::getName | ( | ) |
@inheritDoc
Implements MediaWiki\Skins\Vector\FeatureManagement\Requirement.
MediaWiki\Skins\Vector\FeatureManagement\Requirements\UserPreferenceRequirement::isMet | ( | ) |
@inheritDoc
Implements MediaWiki\Skins\Vector\FeatureManagement\Requirement.
MediaWiki\Skins\Vector\FeatureManagement\Requirements\UserPreferenceRequirement::isPreferenceEnabled | ( | ) |
Checks whether the user preference is enabled or not.
Returns true if enabled AND title is not null.