Example with CKEditor WYSIWYG inline images field.
Also see : Create a Form with Drupal 8 using Form API
Â
Import configuration file programmatically on Drupal 9 using config_update contrib module and service
//Update Module settings
\Drupal::service('config_update.config_update')->revert('system.simple', 'mymodule.settings');
Method 1 : Form hook_page_attachments