I'm using the Configuration Inspector module module, and I'm finding a missing schema error.
The configuration is for block.block.pminbox.settings.thread_count
The block itself is a plugin, created in my module. I've tried:
- Adding the settings to the block annonation
- Creating block.block.pminbox and adding settings as a mapping with thread_count as a property of that mapping
- Creating block.block.pminbox.settings and adding thread_count in there
- Adding the config to mymodule.schema.yml
Here is where I am at as of now. Submit handler for class extending BlockBase:
public function blockSubmit($form, FormStateInterface $form_state) {
$this->configuration['thread_count'] = (int) $form_state->getValue('thread_count');
}
mymodule.schema.yml:
block.settings.pminbox:
type: block_settings
label: 'Private message inbox block settings'
mapping:
thread_count:
type: integer
label: 'Thread count'
The rest of the schema in this file is being picked up, however, I'm still getting a 'schema undefined' error from the configuration inspector for this block.