As a developer I'd like to be able to some custom information to workflow states (e.g. a category) which I could do with a custom module in a cleaner way if third party settings were enabled.
As a developer I'd like to be able to some custom information to workflow states (e.g. a category) which I could do with a custom module in a cleaner way if third party settings were enabled.
Comments
Comment #2
johnvThat is a new D8 feature, isn't it? A patch is very welcome, and perhaps some example code.
Comment #3
johnvSee New ThirdPartySettingsInterface and ThirdPartySettingsTrait for configuration entities to store third party settings
See ThirdPartySettingsTrait is removed and merged into ConfigEntityBase
Both States and ConfigTransitions are a ConfigEntityBase, so the ThirdPartySettingsInterface is available.
In the Workflow code base, I only see $third_party_settings used in formatters, extending FormatterBase.
It is not supported in widgets, but they implement plain vanilla WidgetBase, which also implements ThirdPartySettingsInterface, passing third_party_settings in constructor.
A use case is needed to see if current code is sufficient.