diff --git a/core/lib/Drupal/Core/Field/FieldModuleUninstallValidator.php b/core/lib/Drupal/Core/Field/FieldModuleUninstallValidator.php index b6fe2f1..fb9fb5b 100644 --- a/core/lib/Drupal/Core/Field/FieldModuleUninstallValidator.php +++ b/core/lib/Drupal/Core/Field/FieldModuleUninstallValidator.php @@ -41,11 +41,12 @@ public function __construct(EntityManagerInterface $entity_manager, TranslationI public function validate($module_name) { $reasons = array(); + // We skip fields provided by the Field module as it implements field + // purging. if ($module_name != 'field') { foreach ($this->entityManager->getDefinitions() as $entity_type_id => $entity_type) { // We skip entity types defined by the module as there must be no content - // to be able to uninstall them anyway. We also skip the Field module as - // it implements field purging. + // to be able to uninstall them anyway. // See \Drupal\Core\Entity\ContentUninstallValidator. if ($entity_type->getProvider() != $module_name && $entity_type->isSubclassOf('\Drupal\Core\Entity\FieldableEntityInterface')) { foreach ($this->entityManager->getFieldStorageDefinitions($entity_type_id) as $storage_definition) {