Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / locale / src / Form / ImportForm.php
index a9f15f07f18de6160e565e500965bfcf795cf126..122093ae69d216379b9aa8814900f634354a6c33 100644 (file)
@@ -46,6 +46,7 @@ class ImportForm extends FormBase {
       $container->get('language_manager')
     );
   }
+
   /**
    * Constructs a form for language import.
    *
@@ -175,7 +176,7 @@ class ImportForm extends FormBase {
     if (empty($language)) {
       $language = ConfigurableLanguage::createFromLangcode($form_state->getValue('langcode'));
       $language->save();
-      drupal_set_message($this->t('The language %language has been created.', ['%language' => $this->t($language->label())]));
+      $this->messenger()->addStatus($this->t('The language %language has been created.', ['%language' => $this->t($language->label())]));
     }
     $options = array_merge(_locale_translation_default_update_options(), [
       'langcode' => $form_state->getValue('langcode'),