Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
In what scenario would a Rules action not have this method, though? It's pretty much a requirement for action objects given the RulesAbstractPlugin has this method.
RulesAnd, RulesLoop, RulesOr extend off RulesPlugin, not RulesAbstractPlugin. I know that #1698296: [Meta] Merge Conditional Rules isn't in rule core (yet), but we should still support rules_conditional.
Comments
Comment #1
heddnThis is the fix that was in related #1320036: No method getElementName for this instance of the class RulesOr - when on the admin/people/create page
Comment #2
rszrama commentedIn what scenario would a Rules action not have this method, though? It's pretty much a requirement for action objects given the RulesAbstractPlugin has this method.
Comment #3
heddnRulesAnd, RulesLoop, RulesOr extend off RulesPlugin, not RulesAbstractPlugin. I know that #1698296: [Meta] Merge Conditional Rules isn't in rule core (yet), but we should still support rules_conditional.
Comment #4
rszrama commentedHmm, so I suppose someone has a payment method rule using a RulesLoop? If so, should we update this function to traverse the loop?
Comment #5
rszrama commentedI went ahead and committed the patch, but I changed method_exists() to is_callable().
Commit: http://drupalcode.org/project/commerce.git/commitdiff/b61ef0e