mediawiki-skins-Vector/includes/FeatureManagement/Requirements
Nicholas Ray 7e0dd79d5a Convert LimitedWidthRequirement to UserPreferenceRequirement
Generalize LimitedWidthRequirement into a more reusable
UserPreferenceRequirement that can be used by both the limited width feature and
the persistent pinning feature (and possibly others in the future).

* Removes existing logic that checks whether the option is not null. Given that
skin.json sets the default [1], presumably this isn't needed.

* Adds unit test

[1] 65af26a258/skin.json (L163)

Bug: T322051
Change-Id: I7f228cf81a65b2eb22dbe94d2384b6c9f6da91f2
2022-12-01 16:31:47 -07:00
..
DynamicConfigRequirement.php Normalise PHP namespaces used in Vector 2022-05-23 09:32:40 +02:00
LimitedWidthContentRequirement.php Features: Make max width a feature 2022-10-24 13:12:06 -07:00
OverridableConfigRequirement.php Normalise PHP namespaces used in Vector 2022-05-23 09:32:40 +02:00
SimpleRequirement.php Normalise PHP namespaces used in Vector 2022-05-23 09:32:40 +02:00
TableOfContentsTreatmentRequirement.php Update name of body class to avoid confusion 2022-09-28 12:26:38 -07:00
UserPreferenceRequirement.php Convert LimitedWidthRequirement to UserPreferenceRequirement 2022-12-01 16:31:47 -07:00