Problem/Motivation
I would like to be able to select a reference to my entity directly from the layout configuration field layout
like this

Proposed resolution
Create context resolver for loading entity and bundle so that the reference fields can then be selected in the administration panel.
Issue fork ui_patterns-3560994
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
anwoon commentedComment #4
anwoon commentedComment #5
anwoon commentedComment #6
just_like_good_vibesHello,
thank you for reporting this and proposing code.
would you please fix the MR to be green so we could make a review?
eventually also, if you have time, please provide one or more basic automatic tests.
thank you
Comment #7
anwoon commentedthe pipeline failed by git at upload artefact https://git.drupalcode.org/issue/ui_patterns-3560994/-/jobs/7519212 i don't see any errors
Comment #8
pdureau commentedhi @anwoon, the pipele is green now 👍 Is this ticket now in review?
Also, @just_like_good_vibes, I am currently working on #3540247: Tidy source contexts and we will need to check how this proposal fits with the plan where both
ui_patterns:form_statecontext andContextEntityResolverInterfacemay be removed. To be sure we will not break the current proposal, we will need a dedicated test.