Closed (fixed)
Project:
Menu item content fields
Version:
2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jul 2026 at 17:33 UTC
Updated:
28 Jul 2026 at 13:15 UTC
Jump to comment: Most recent
Comments
Comment #4
dkmishra commentedHi @rodrigoaguilera,
I looked into both Form modes and View modes. Here's what I found:
Form modes: Confirmed this is a bug. I was able to reproduce it, and the attached MR fixes the issue.
View modes: This is not an issue. `hook_entity_view_mode_presave()` already exists and correctly sets the `menu_item_fields` dependency, so view modes are cleaned up properly on uninstall.
So the bug is limited to Form modes only. The root cause was that `hook_entity_form_mode_presave()` was missing, while the equivalent hook for View modes was already implemented. This has been fixed in the attached MR please review.
Comment #6
rodrigoaguileraI created the issue because after uninstalling some core.entity_form_display.menu_link_content.menu_link_content.FORM_MODE did not uninstall despite the dependency but I'm not able to reproduce anymore.
Anyway you fix is quite valid. Thanks for the contribution