Problem/Motivation

Steps to reproduce

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.

Proposed resolution

Add another ModuleUninstallValidatorInterface to field module which checks field and field storage config dependencies.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

joachim created an issue. See original summary.

joachim’s picture

Version: 11.x-dev » 10.1.x-dev
joachim’s picture

Version: 10.1.x-dev » 11.x-dev

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.