Problem/Motivation
In testing, when installing the test module (ckeditor5_paste_filter_test) in Drupal 11, you may not be able to due to config schema validation:
In ConfigSchemaChecker.php line 98:
Schema errors for editor.editor.test with the following errors: 0 [image_upload] 'status' is a required key.
Steps to reproduce
- In a settings.php file or include, add:
$settings["extension_discovery_scan_tests"] = TRUE;
- Install the ckeditor5_paste_filter_test module
- Navigate to /admin/config/content/formats/manage/test
- Save the config form
Expected behaviour: Saves without error
Actual behaviour:
Warning: Undefined array key "status" in editor_form_filter_admin_format_submit() (line 109 of core/modules/editor/editor.module).
Proposed resolution
Amend the config file to align with the Drupal 11 schema.
Remaining tasks
- Make the necessary changes
- Test locally
- Create a merge request
- Review the changes
- Merge!
User interface changes
n/a
API changes
n/a
Data model changes
n/a
Comments
Comment #2
star-szrComment #3
star-szrComment #6
star-szr