summaryrefslogtreecommitdiffstats
path: root/core/modules/content_translation/src/ContentTranslationHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/content_translation/src/ContentTranslationHandler.php')
-rw-r--r--core/modules/content_translation/src/ContentTranslationHandler.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/content_translation/src/ContentTranslationHandler.php b/core/modules/content_translation/src/ContentTranslationHandler.php
index e7855fb..a1ab3d5 100644
--- a/core/modules/content_translation/src/ContentTranslationHandler.php
+++ b/core/modules/content_translation/src/ContentTranslationHandler.php
@@ -734,7 +734,7 @@ class ContentTranslationHandler implements ContentTranslationHandlerInterface, E
'target' => $form_object->getFormLangcode($form_state),
]);
$languages = $this->languageManager->getLanguages();
- drupal_set_message(t('Source language set to: %language', ['%language' => $languages[$source]->getName()]));
+ $this->messenger->addStatus(t('Source language set to: %language', ['%language' => $languages[$source]->getName()]));
}
/**
@@ -746,7 +746,7 @@ class ContentTranslationHandler implements ContentTranslationHandlerInterface, E
$form_object = $form_state->getFormObject();
$entity = $form_object->getEntity();
if (count($entity->getTranslationLanguages()) > 1) {
- drupal_set_message(t('This will delete all the translations of %label.', ['%label' => $entity->label()]), 'warning');
+ $this->messenger->addWarning(t('This will delete all the translations of %label.', ['%label' => $entity->label()]));
}
}