- Issue created by @miiimooo
- 🇫🇷France just_like_good_vibes PARIS
ui_patterns_entity:x:x blocks are for layout builder and only appears in layout builder, because it requires an entity context to work.
ui_patterns:x:x are global blocks without any context required, they won't show in layout builder by design (and by code).
in which screen, by which contrib module, are the blocks shown twice? i guess this is where the code is wrong. Because when you properly require the list of blocks for layout builder, only one block per component is returned.
- miiimooo Europe
Thanks for clarifying. This is in core / field_ui, when configuring the display mode full, with layout builder enabled, so for example
* create a content type
* go to Manage display for the new content type /admin/structure/types/manage/article/display
* enable "Use Layout Builder"
* then in Blocks Available for Placement is where I get the duplicates - 🇫🇷France just_like_good_vibes PARIS
Hello,
thank you for clarification, indeed very strange, it seems like a regression.
we need to figure this out. thank you for reporting. i will work on that one. - 🇫🇷France just_like_good_vibes PARIS
i can't reproduce right now your issue.
there is a code in ui_patterns_blocks in the .module which does this.
The problem is introduced by "layout_builder_restrictions"... - 🇫🇷France just_like_good_vibes PARIS
@miiimooo, let me know if the pushed code is solving something to your issue?
i still can't reproduce on my side.