Problem/Motivation
Would like to remove the langcode settings to fr.
Steps to reproduce
With fr defined we needed to added a language setting for french under:
/admin/config/regional/language
Getting exception when modules, like Webform, make calls to:
getNativeLanguages() in web/core/modules/language/src/ConfigurableLanguageManager.php
This in turn makes a call to ::load with a langcode of en, which returns null.
$natives[$langcode] = ConfigurableLanguage::load($langcode);
Next a call to Language::sort($natives); throws an exception with the en value set to null.
Proposed resolution
Remove references to langcode fr.
Remaining tasks
Provided a patch to address this. Needs to be reviewed.
User interface changes
API changes
Data model changes
Comments
Comment #2
gmercer commentedHere is the patch for this issue.
Comment #4
b2f commentedCommited to 8.x-1.0-rc1
Thanks !
Would you also provide a hook_update in the .install ?
Comment #5
b2f commentedComment #6
b2f commented