Reviewed & tested by the community
Project:
Display Builder
Version:
1.0.x-dev
Component:
Main / Misc.
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
9 Feb 2026 at 13:07 UTC
Updated:
19 Apr 2026 at 12:47 UTC
Jump to comment: Most recent
Comments
Comment #2
pdureau commentedComment #3
pdureau commentedThis is what we already do for imports from Layout Builder (we add a new step in history each time a Layout Builder display is saved)
Comment #4
pdureau commentedMaybe we can play with SynchronizableInterface already expected by
ConfigEntityInterfaceimplemented inConfigEntityBasethrough SynchronizableEntityTrait:So, somewhere in
::postSave(), we can checkSynchronizableInterface::isSyncing()and triggerInstance::setNewPresent()with a log message saying "Synced from configuration import" or something like that.Comment #6
pdureau commentedHi gurnoor kaur,
If you want to work on this issue, don't forget to assign it to you.
Comment #7
gurnoor kaur commentedComment #9
pdureau commentedComment #10
pdureau commentedAlso, it must be done for Views config entities. We have no direct control on the entity here, but there is a hook related to
::postSave()I believeAnd some related tests would be welcomed.
Comment #11
gurnoor kaur commentedThere was no such hook for the postSave implementation so i added a hook entity_update for config import .
Comment #12
gurnoor kaur commentedComment #13
pdureau commentedThanks a lot for your work
I see you are using
\Drupal::logger('display_builder');. You may have been misled by this sentence of mine:The "log message" here is the second parameter of
InstanceInterface->setNewPresent(). You are already correctly using it. No need forLoggerservice.Also, is it possible to add some phpunit tests? We will mess a lot with
InstanceInterfacenext weeks, by adopting the Core's Entity Revision API, and we need to be careful not breaking your work.Comment #14
gurnoor kaur commentedComment #15
yannickooHey there is a merge conflict, therefore setting to Needs work 😇
Comment #16
gurnoor kaur commentedComment #17
pdureau commentedOk thanks, I am having a look.
Comment #18
pdureau commentedLooks ok to me.
Manually tested on local env:
I got some weird behaviours with Views (some panels not properly swapped) but there is nothing in the MR which seem to be the cause of that, it may be because of my messy local dev environment.