Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / locale / src / LocaleConfigManager.php
index e67f3bc4a270eaaf22f8594918495e65d874cfdb..18f335c10bc0d80dd5a7ae8a190398c4a5fda7dd 100644 (file)
@@ -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);
       }