I need to define an array in my onlyone.settings.yml file to store this values:
onlyone_node_types: book: book test: test
In my onlyone.schema.yml file I have this:
module.settings: type: config_object label: 'Only One settings' mapping: onlyone_node_types: type: sequence label: 'Configured content types to have Only One node' sequence: type: string label: 'Content type machine name'
But I don't know if I need to use a sequence or a mapping type in my case.
I read in the Configuration schema/metadata page this:
Note that you may also encounter a slightly different sequence definition where the type of the sequence items is defined as a strictly one item list. This format is deprecated and will be removed in Drupal 9:
So, I don't know if I need to use mapping or sequence in my case to define my array.