Page MenuHomePhabricator

Document onConditionalDefaultOptionsAddCondition under mw:Manual:Hooks
Closed, DeclinedPublic

Description

In rMW37985a198de7: ConditionalDefaultsLookup: allow to dynamically add conditions for evaluation (T376918), @Sgs added the onConditionalDefaultOptionsAddCondition hook to conditional defaults. While filling T383701, I noticed the hook was not added to mw:Manual:Hooks, making it harder to discover and understand.

We should expand https://www.mediawiki.org/wiki/Manual:Hooks/ConditionalDefaultOptionsAddCondition with the hook documentation, and then add it to the table.

Event Timeline

Is this hook still worth keeping?

During the 2026-03-23 estimation meeting, we were leaning towards removing the hook altogether, rather than documenting it. Let's discuss this question in Backlog Refinement and make the call there.