From bb78e06d83e88670f756fea689c15a255851c988 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Sun, 6 Apr 2014 22:00:06 +0100 Subject: [PATCH] Issue #2228129 by Berdir: Unnecessary separate config load call to load languages. --- .../lib/Drupal/language/ConfigurableLanguageManager.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/modules/language/lib/Drupal/language/ConfigurableLanguageManager.php b/core/modules/language/lib/Drupal/language/ConfigurableLanguageManager.php index 5cd3d8e26f3..a73de8067ed 100644 --- a/core/modules/language/lib/Drupal/language/ConfigurableLanguageManager.php +++ b/core/modules/language/lib/Drupal/language/ConfigurableLanguageManager.php @@ -278,8 +278,7 @@ class ConfigurableLanguageManager extends LanguageManager implements Configurabl // Retrieve the config storage to list available languages. $prefix = 'language.entity.'; - $storage = $this->configFactory->get($prefix . Language::LANGCODE_NOT_SPECIFIED)->getStorage(); - $config_ids = $storage->listAll($prefix); + $config_ids = $this->configFactory->listAll($prefix); // Instantiate languages from config objects. $weight = 0;