projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Security update for Core, with self-updated composer
[yaffs-website]
/
web
/
core
/
lib
/
Drupal
/
Core
/
Config
/
Schema
/
SchemaCheckTrait.php
diff --git
a/web/core/lib/Drupal/Core/Config/Schema/SchemaCheckTrait.php
b/web/core/lib/Drupal/Core/Config/Schema/SchemaCheckTrait.php
index 9230281f55d8eb7c71dea6458893f9ffbd0a3539..80045d030367afc05ed8c8f469e17cc9faf22867 100644
(file)
--- 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;
}
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));
$errors = [];
foreach ($config_data as $key => $value) {
$errors = array_merge($errors, $this->checkValue($key, $value));