Problem/Motivation

After installing the module on Drupal 11.4.8 with PHP 8.4, config validation reports an error for pmfs.settings:

----------------- --------- ------------- ------------------------------------------------------------------------------------------------ 
  Key               Status    Validatable   Data                                                                                            
 ----------------- --------- ------------- ------------------------------------------------------------------------------------------------ 
  pmfs.settings     Correct   80%           1 errors                                                                                        
   pmfs.settings:   Correct   Validatable   The pmfs.settings config object must specify a language code, because it contains translatable  
                                            values.                                                                                         
 ----------------- --------- ------------- ------------------------------------------------------------------------------------------------ 

Steps to reproduce

  1. Install Drupal 11.4.x and enable the pmfs module.
  2. Run drush config:inspect --detail --only-error.

Proposed resolution

  • Add langcode: en to config/install/pmfs.settings.yml.
  • Add an update hook (pmfs_update_10001()) that sets langcode on existing installs to the site default language.

Issue fork pmfs-3629982

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dkmishra created an issue. See original summary.

dkmishra’s picture

Status: Active » Needs review
voleger’s picture

Version: 2.0.x-dev » 2.1.x-dev
vasyl vasylkiv’s picture

Status: Needs review » Reviewed & tested by the community

Looks good

voleger’s picture

Status: Reviewed & tested by the community » Fixed

Thanks

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • voleger committed 9636dadb on 2.1.x authored by dkmishra
    fix: #3629982 Config schema validation error: pmfs.settings must specify...