Active
Project:
Drupal core
Version:
main
Component:
field system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jun 2023 at 13:00 UTC
Updated:
28 Nov 2023 at 13:22 UTC
Jump to comment: Most recent
Field module provides an uninstall validator, FieldUninstallValidator, which checks that a module being uninstalled doesn't provide the field type plugin for any active fields.
However, if a field's config declares a config dependency, that is not checked on uninstall.
This could result in a broken field or entity type - for example, if the module being uninstalled provides the callback_allowed_values_function() for a field.
Add another ModuleUninstallValidatorInterface to field module which checks field and field storage config dependencies.
Comments
Comment #2
joachim commentedComment #3
joachim commented