I'm working on a couple of projects, porting them to Backdrop, and I ran into a bit of a unique challenge. It appears that the module I'm working on uses dynamic names when using variable_get(). To convert this to use config_get(), I need to put the default value into the .settings.json file as explained here. How should I approch this? The code in question looks like so:
$type_menus = variable_get('menu_options_' . $params['type'], array('main-menu' => 'main-menu'));
As far as I have read, JSON doesn't allow for wildcards. Has anyone else run into this? How did you solve it?