Skip to main content
11 events
when toggle format what by license comment
Apr 14, 2020 at 18:24 answer added Mrweiner timeline score: 1
Apr 14, 2020 at 18:20 comment added Mrweiner Somehow missed that Interface you linked -- thanks for that. Looking through the db again I did find a plugin_confguration col in some associated tables. I didn't realize those were hex/seralized data. Converting the hex string revealed the data I had been expecting to find. Was hoping to set some of this data during a migration but it might be trickier than I'd anticipated.
Apr 14, 2020 at 8:20 comment added 4uk4 Normally configurable plugins are connected with a config entity to store the plugins configuration, but they don't need to. Plugins can be instantiated with configuration retrieved from any place, which for this plugin type is explained in the module code you have linked git.drupalcode.org/project/commerce_license/-/blob/8.x-2.x/src/….
Apr 14, 2020 at 6:50 review Close votes
May 4, 2020 at 3:03
Apr 14, 2020 at 6:44 comment added Mrweiner Because what I'm describing is specifically not in the exported site config at all. See the packaged commerce license plugin: git.drupalcode.org/project/commerce_license/-/blob/8.x-2.x/src/…. When a license is saved on a Product Variant, it's saved to $this->configuration['license_role']. Then when the edit form is loaded again, that value is used as the field default. But, exporting site config holds no reference to the value in $this->configuration['license_role'].
Apr 14, 2020 at 6:29 comment added 4uk4 All configuration is exported to the sync folder as well. So why does it matter where it is stored in the database?
Apr 14, 2020 at 3:38 comment added Jaypan Depends on what you are configuring.
Apr 14, 2020 at 3:28 history edited Mrweiner CC BY-SA 4.0
deleted 1 character in body
Apr 14, 2020 at 3:28 comment added Mrweiner Thought that'd be the case, but I don't see any entries whose names seem quite right. Do you know how the name col is set/determined in config?
Apr 14, 2020 at 3:04 comment added Jaypan All configuration is stored in the config table in the database.
Apr 14, 2020 at 2:26 history asked Mrweiner CC BY-SA 4.0