mediawiki-skins-Vector/includes/FeatureManagement
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
..
Requirements Convert LimitedWidthRequirement to UserPreferenceRequirement 2022-12-01 16:31:47 -07:00
FeatureManager.php FeatureManagement: All features have an associated class on the body tag 2022-09-01 22:09:48 +00:00
Requirement.php Normalise PHP namespaces used in Vector 2022-05-23 09:32:40 +02:00
TODO.md featureManager: Add DynamicConfigRequirement requirement 2020-03-18 10:10:42 +00:00