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

mikejw created an issue. See original summary.

johnv’s picture

That is a new D8 feature, isn't it? A patch is very welcome, and perhaps some example code.

johnv’s picture

Version: 8.x-1.x-dev » 2.1.x-dev
Status: Active » Postponed (maintainer needs more info)

See 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.

  • johnv committed 0c3f811f on 2.1.x
    Issue #2737877: Remove redundant interface declaratin from Formatters