Commit bb78e06d authored by alexpott's avatar alexpott

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

parent 5364b20d
......@@ -278,8 +278,7 @@ public function getLanguages($flags = Language::STATE_CONFIGURABLE) {
// 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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment