Closed (fixed)
Project:
Custom Elements
Version:
3.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
25 May 2023 at 08:48 UTC
Updated:
22 Mar 2024 at 09:24 UTC
Jump to comment: Most recent
When custom_elements module gets uninstalled we need to ensure all entity_ce_display entities are properly deleted. Theoretically, it must be done if config dependencies are properly set.
On bundle delete we need to delete also entity_ce_display entities for this entity/bundle. Something similar must already be implemented in core.
Check and try to reuse solutions from the core before bringing extra code to the project.
Comments
Comment #2
mostepaniukvmComment #3
junkunczComment #4
junkunczAre you sure we need to do anything about it? I was doing some testing and looks like entity_ce_display config object is deleted automatically during bundle delete and if I uninstall the module all related configs are removed.
Maybe we could add a tiny snippet to hook_uninstall() to make sure all entity_ce_display configs are properly deleted. Something like this:
What do you think?
Comment #5
junkunczComment #6
fagoI don't think this is needed, if config dependencies are doing the clean-up correctly, it's fine to rely on that. Thanks for checking!