summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxjm2017-10-27 18:02:43 -0500
committerxjm2017-10-27 18:02:43 -0500
commitf16783ad59a28c0de15e0c39edde357c6001a4cb (patch)
tree12b4944ee4b648eae1c549739c95cea5a103775a
parent5951ea0d1b3f730f8c2997bb8816dcc1175018bd (diff)
Issue #2862308 by Yogesh Pawar, joelpittet, amateescu: Log a message when skipping deleted fields during field_purge_batch()
-rw-r--r--core/modules/field/field.purge.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/modules/field/field.purge.inc b/core/modules/field/field.purge.inc
index 519c6af..59f347a 100644
--- a/core/modules/field/field.purge.inc
+++ b/core/modules/field/field.purge.inc
@@ -90,6 +90,7 @@ function field_purge_batch($batch_size, $field_storage_uuid = NULL) {
// providing module was uninstalled).
// @todo Revisit after https://www.drupal.org/node/2080823.
if (!isset($info[$entity_type])) {
+ \Drupal::logger('field')->warning("Cannot remove field @field_name because the entity type is unknown: %entity_type", ['@field_name' => $field->getName(), '%entity_type' => $entity_type]);
continue;
}