#3360991 changed TypedConfigManager::createFromNameAndData() in 10.1.x

Created on 10 July 2023, over 1 year ago
Updated 22 August 2023, over 1 year ago

Problem/Motivation

🐛 TypedData instances created by TypedConfigManager::createFromNameAndData() are incomplete Fixed made a critical change in \Drupal\Core\Config\TypedConfigManager::createFromNameAndData(), which requires \Drupal\config_inspector\Controller\ConfigInspectorController::formatTree() to be modified, and possibly other code.

Steps to reproduce

Visit /admin/reports/config-inspector/field.field.block_content.basic.body/tree. It crashes:

TypeError: Drupal\config_inspector\ConfigSchemaValidatability::getConstraints(): Return value must be of type array, null returned in Drupal\config_inspector\ConfigSchemaValidatability->getConstraints() (line 63 of modules/contrib/config_inspector/src/ConfigSchemaValidatability.php).

Also visible in CI tests: https://www.drupal.org/pift-ci-job/2686221

Proposed resolution

Detect >=10.1.x and use different logic then.

Remaining tasks

User interface changes

None.

API changes

None.

Data model changes

None.

📌 Task
Status

Fixed

Version

2.1

Component

Code

Created by

🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024