- Issue created by @pdureau
- π«π·France goz
It's not so easy.
The twig is called when the display builder is loaded. Contextual islands are not loaded yet,and no contextual island plugin is loaded.
Islands Plugins are loaded once an instance is triggered, but only plugins are updated, not the contextual area.Events seem to be triggered on islands plugins, not on the contextual area.
I look forward, but may be someone with more knowledge about how display_builder works has an idea ?
- π«π·France pdureau Paris
yes, it is not an easy task. Your analysis is right, Goz. Let's postpone it to alpha2.
- π«π·France pdureau Paris
I did the analysis and updated the issue description. Who takes the task?
- π«π·France mogtofu33
An other alternative is to do this on js as we have on the click element the html attributes of title and even index.
As the drawer title is a property set on the load of the component in the display_builder component it would avoir more php. - π«π·France pdureau Paris
Finally, i work on this first: π Move state management to the Entity API? Active
- πΊπΈUnited States sea2709 Texas
@pdureau:
When you have some time, can you review my MR? I found an issue when an instance for a entity field is active and the second drawer is open, then I change the field and click on Update, I expect the drawer label should be updated, but it's not.
I found this piece of code in
DisplayBuilderEventSubscriber
if ($island_id === $event->getCurrentIslandId()) { continue; }
If I comment out this piece of code, the drawer label is updated correctly. I think when the instance form is update, the panel should be swapped.