Problem/Motivation
Following up #3500244: [2.0.0-rc2] Entity ContextException with ComponentLayout from UI Patterns project
we need to carefully ensure that DS entity view will inject the rendered entity inside the context, or we need to add a specific mechanism to allow a custom resolver to resolve the entity for ui patterns2.
Issue fork ui_patterns_ds-3501396
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
pdureau commentedComment #3
just_like_good_vibeswe found the solution.
one needs to implement
Comment #4
dalemoore commentedThis partially solves the issue for me. I put the code @just_like_good_vibes included above directly into a custom module, installed it, and I no longer get ContextException errors on the front end, but I do still get them in Layout Builder.
Steps:
Comment #5
just_like_good_vibesHello, thanks for reporting the issue, much valued, we indeed need to carefully investigate more.
i will update the proposed solution soon
Comment #10
just_like_good_vibesComment #11
just_like_good_vibesHello @dalemoore, It should be fixed now :)
Comment #12
dalemoore commentedJust tested, yep fixed! Thank you 🙇♂️