Issue #2862308 by Yogesh Pawar, joelpittet, amateescu: Log a message when skipping deleted fields during field_purge_batch()

8.5.x
xjm 2017-10-27 18:02:43 -05:00
parent 5951ea0d1b
commit f16783ad59
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}