diff --git a/core/modules/content_translation/src/ContentTranslationHandler.php b/core/modules/content_translation/src/ContentTranslationHandler.php index 7c9770b..90aa1c3 100644 --- a/core/modules/content_translation/src/ContentTranslationHandler.php +++ b/core/modules/content_translation/src/ContentTranslationHandler.php @@ -152,7 +152,7 @@ public function entityFormAlter(array &$form, FormStateInterface $form_state, En $form['langcode']['#options'] = array(); foreach (language_list(LanguageInterface::STATE_CONFIGURABLE) as $language) { if (empty($translations[$language->getId()]) || $language->getId() == $entity_langcode) { - $form['langcode']['#options'][$language->getId()] = $language->getName(); + $form['langcode']['#options'][$language->getId()] = $language->name; } } } diff --git a/core/modules/locale/src/Tests/LocaleStringTest.php b/core/modules/locale/src/Tests/LocaleStringTest.php index 4f20349..430b024 100644 --- a/core/modules/locale/src/Tests/LocaleStringTest.php +++ b/core/modules/locale/src/Tests/LocaleStringTest.php @@ -188,7 +188,7 @@ public function buildSourceString($values = array()) { */ public function createAllTranslations($source, $values = array()) { $list = array(); - /** @var \Drupal\Core\Language\LanguageManagerInterface $language_manager */ + /* @var $language_manager \Drupal\Core\Language\LanguageManagerInterface */ $language_manager = $this->container->get('language_manager'); foreach ($language_manager->getLanguages() as $language) { $list[$language->getId()] = $this->createTranslation($source, $language->getId(), $values);