Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Since reaction rules are obviously embedded in event sets (subclass of rule sets) via RulesRuleSet::rule()
, rules_rules_plugin_info()
should reflect that.
On the UI front, there is no impact since RulesEventSet
itself can't be embedded, and there is no UI for an event set. So, there is other way to add a reaction rule than from the default tab provided in Rules UI.
This issue has arisen from #1671344-4: Setting parent of plugin to incompatible container removes its current parent.
Patch follows.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1672444-01-Make_reaction_rules_embeddable_in_event_sets.patch | 432 bytes | zhangtaihao |
Comments
Comment #1
zhangtaihao CreditAttribution: zhangtaihao commentedAs promised.
Comment #2
fagoAs said over there, embedded is only used by the UI. That way we can actually build configs that embed other stuff than as what it is allowed in the UI, what might be useful in some cases - as in this one: Building evaluation optimized configs.
I've clarified the UI-only use of the embeddable key in the in-code docs.
Comment #3.0
(not verified) CreditAttribution: commentedMentioned why UI is discussed.