summaryrefslogtreecommitdiffstats
path: root/core/modules/field/field.module
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/field/field.module')
-rw-r--r--core/modules/field/field.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/field/field.module b/core/modules/field/field.module
index 14340b8..4d4d482 100644
--- a/core/modules/field/field.module
+++ b/core/modules/field/field.module
@@ -324,12 +324,12 @@ function field_form_config_admin_import_form_alter(&$form, FormStateInterface $f
foreach ($field_storages as $field) {
$field_labels[] = $field->label();
}
- drupal_set_message(\Drupal::translation()->formatPlural(
+ \Drupal::messenger()->addWarning(\Drupal::translation()->formatPlural(
count($field_storages),
'This synchronization will delete data from the field %fields.',
'This synchronization will delete data from the fields: %fields.',
['%fields' => implode(', ', $field_labels)]
- ), 'warning');
+ ));
}
}
}