aboutsummaryrefslogtreecommitdiffstats
path: root/includes/user/Options/Hook
Commit message (Collapse)AuthorAgeFilesLines
* ConditionalDefaultsLookup: allow to dynamically add conditions for evaluationSergio Gimeno2024-10-161-0/+31
| | | | | | | | | | | | | | | | | | Why: To facilitate the evaluation of conditions not directly "known" by the lookup, eg: owned by extensions What: - Add ConditionalDefaultOptionsAddCondition hook which runs before instantiating ConditionalDefaultsLookup allowing to add conditions for evaluation in the $extraConditions array. - Evaluate the configured conditional default against the extra added conditions after evaluation of "known" conditions. Bug: T376918 Change-Id: Ife6f96397eafd61fdb40528aac315ddde1ef2774
* Adjust method signature of onSaveUserOptionsTChin2021-07-261-2/+3
| | | | | | | | This allows hook callers to compare before and after the save Bug: T287397 Depends-On: I20098ae076b282296670d1116e14bbd29ea76b11 Change-Id: I4d09008bc2bc10afc3742b74564e5ef90ecfe5bf
* Introduce new hooks for UserOptionsManagerPetr Pchelko2021-07-212-0/+58
Bug: T286576 Change-Id: Ib960ec594d376e086da868d216dd85c8ea6bba14