Mercurial > hg > isophonics-drupal-site
diff core/modules/config_translation/src/Controller/ConfigTranslationController.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 7a779792577d |
children |
line wrap: on
line diff
--- a/core/modules/config_translation/src/Controller/ConfigTranslationController.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/config_translation/src/Controller/ConfigTranslationController.php Thu Feb 28 13:21:36 2019 +0000 @@ -139,7 +139,7 @@ $languages = $this->languageManager->getLanguages(); if (count($languages) == 1) { - drupal_set_message($this->t('In order to translate configuration, the website must have at least two <a href=":url">languages</a>.', [':url' => $this->url('entity.configurable_language.collection')]), 'warning'); + $this->messenger()->addWarning($this->t('In order to translate configuration, the website must have at least two <a href=":url">languages</a>.', [':url' => $this->url('entity.configurable_language.collection')])); } try { @@ -162,7 +162,7 @@ '#items' => $items, ], ]; - drupal_set_message($this->renderer->renderPlain($message), 'warning'); + $this->messenger()->addWarning($this->renderer->renderPlain($message)); $original_langcode = LanguageInterface::LANGCODE_NOT_SPECIFIED; $operations_access = FALSE;