In porting Facebook Page Plugin I'd like to create a upgrade path from D7 to Backdrop. In D7, they used variables for the settings (e.g.
variable_get('fb_likebox_url', '')), and since in D7 blocks can (by default) only have one instance, that makes sense. However in Backdrop settings for blocks are saved (by default) by the Layout module:
Most settings will automatically be saved if using the Layout module to position blocks...
Indeed, I found the settings for my block saved in
'content > [UUID] > data > settings > block_settings'. This makes sense in Backdrop as blocks can have multiple instances, so storing each block's settings in Layouts works nicely.
The problem is converting Drupal's variables to Backdrop's block settings:
- How to know which config file to edit (e.g. where does the block from Drupal get saved in Backdrop when upgrading?)
- How to know what the UUID is in order to save the proper config path?
Any help appreciated!