Missing langcode in purge_users.settings and config/install missing

Created on 22 August 2025, 10 days ago

Problem/Motivation

The langcode is missing in purge_users.settings.
It is needed because the config file contains translatable keys (see type: label in schema.yml)
Also, it seems config/install/purge_users.settings.yml is missing, which is needed to achieve this.

Related change record (introduced in 10.3.0): https://www.drupal.org/node/3427629

Steps to reproduce

- Install purge_users and config_inspector
- Save the settings form at /admin/people/purge-rule (so it creates purge_users.settings - this should instead be created on module install)
- Run: drush config:inspect --only-error --detail --list-constraints
- Output:

purge_users.settings                               Correct   38%           1 errors   ValidKeys: '<infer>'                        
                                                                                        LangcodeRequiredIfTranslatableValues: null

Proposed resolution

- Add missing config/install/purge_users.settings.yml with default values and langcode: en
- Add post update hook to add langcode: en if missing.

Remaining tasks

do it

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇧🇪Belgium herved

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024