I have a configuration item in my custom module, part of which is a sequence, basically I’m attempting to create something akin to an array of items
my_module.schema.yml
my_module.settings: type: config_object label: 'Configuration' mapping: custom_fields: label: 'Custom Fields' type: sequence sequence: type: mapping label: 'Custom Field' mapping: field_label: type: string label: 'Field Label' field_key: type: string label: 'Field Key'
What I want to be able to do is add a new item to this ‘list’ as desired, but for the most part up to now (in other areas of my module) I’ve just been using $config->set(key, value)
which will just overwrite the current setting, is there a method to add another value to the existing setting, or do I have to load the existing configuration, add it in manually, then save over the whole lot?