Closed (fixed)
Project:
Display Builder
Version:
1.0.0-alpha6
Component:
Main / Misc.
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Dec 2025 at 21:01 UTC
Updated:
2 Feb 2026 at 15:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
thamasI tried it with alpha6, but I received feedback that the problem also exists in the current development version.
Comment #3
yannickooI was quickly debugging this and found two things:
1. The "Current theme" condition does not come with
#empty_optionso the first item is always selected, in my case it was already set to Claro which is not what we want.Over in
display_builder_page_layoutmodule there is this code to hide the Current theme condition plugin, should we do the same here?2. When using Xdebug to check what is going on here I noticed that the
entity:usercontext is required but not found therefore that currently fails completely:Maybe the fix is super easy, we just need to know how to make the context available 🤓
Comment #4
mogtofu33 commentedComment #5
yannickooAlright so it looks like we are missing the context mapping here. There is also #3561312: Page conditions for content type which seems to be the same problem but somewhere else.
Investigating here 🤓
Comment #7
yannickooIt turned out that the contexts were not working because the
gathered_contextswere not including things like the current user context etc. Once that has been adjusted thebuildConfigurationFormmethod is able to automatically provide the context mapping like for theUserRolecondition plugin 🤯Additionally we need to map the context with values in
alterElementmethod.Comment #8
mogtofu33 commented