ModuleInstaller::install() should catch and rethrow exceptions from installDefaultConfig()

Created on 6 August 2025, 2 days ago

Problem/Motivation

ModuleInstaller::install() calls installDefaultConfig() to install a module's default config.

If that goes wrong during a test, you get an exception like this:

> Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for block_content.type.es_test with the following errors: block_content.type.es_test:revision variable type is integer but applied schema class is Drupal\Core\TypedData\Plugin\DataType\BooleanData

It would be useful if this were caught and re-thrown to add the information of which module has the problem config.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Feature request
Status

Active

Version

11.0 🔥

Component

extension system

Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024