X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Flocale%2Fsrc%2FLocaleConfigManager.php;h=18f335c10bc0d80dd5a7ae8a190398c4a5fda7dd;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=e67f3bc4a270eaaf22f8594918495e65d874cfdb;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/locale/src/LocaleConfigManager.php b/web/core/modules/locale/src/LocaleConfigManager.php index e67f3bc4a..18f335c10 100644 --- a/web/core/modules/locale/src/LocaleConfigManager.php +++ b/web/core/modules/locale/src/LocaleConfigManager.php @@ -140,9 +140,7 @@ class LocaleConfigManager { if ($this->isSupported($name)) { // Create typed configuration wrapper based on install storage data. $data = $this->defaultConfigStorage->read($name); - $type_definition = $this->typedConfigManager->getDefinition($name); - $data_definition = $this->typedConfigManager->buildDataDefinition($type_definition, $data); - $typed_config = $this->typedConfigManager->create($data_definition, $data); + $typed_config = $this->typedConfigManager->createFromNameAndData($name, $data); if ($typed_config instanceof TraversableTypedDataInterface) { return $this->getTranslatableData($typed_config); }