Issue #2228129 by Berdir: Unnecessary separate config load call to load languages.

8.0.x
Alex Pott 2014-04-06 22:00:06 +01:00
parent 5364b20d02
commit bb78e06d83
1 changed files with 1 additions and 2 deletions

View File

@ -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;