X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FConfig%2FSchema%2FSchemaCheckTrait.php;h=80045d030367afc05ed8c8f469e17cc9faf22867;hb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;hp=9230281f55d8eb7c71dea6458893f9ffbd0a3539;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Config/Schema/SchemaCheckTrait.php b/web/core/lib/Drupal/Core/Config/Schema/SchemaCheckTrait.php index 9230281f5..80045d030 100644 --- a/web/core/lib/Drupal/Core/Config/Schema/SchemaCheckTrait.php +++ b/web/core/lib/Drupal/Core/Config/Schema/SchemaCheckTrait.php @@ -55,9 +55,7 @@ trait SchemaCheckTrait { if (!$typed_config->hasConfigSchema($config_name)) { return FALSE; } - $definition = $typed_config->getDefinition($config_name); - $data_definition = $typed_config->buildDataDefinition($definition, $config_data); - $this->schema = $typed_config->create($data_definition, $config_data); + $this->schema = $typed_config->createFromNameAndData($config_name, $config_data); $errors = []; foreach ($config_data as $key => $value) { $errors = array_merge($errors, $this->checkValue($key, $value));