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.
RulesExpression plugins should have a method integrityCheck() that determines if the current configuration setup is sane and no dependencies are missing or configured data types do not match.
Proposed solution: add a "configuration state" class that holds all data definitions of variables that are used in a rule. Add ->integrityCheck() methods to expression objects that throw exception in case an expression is misconfigured. The configuration state is used during traversing nested expression objects to determine which variable are available at which level in the expression tree.
Comments
Comment #2
klausiPR: https://github.com/fago/rules/pull/336
Comment #3
fagosee my PR comments
Comment #4
klausiall comments addressed, please review.
Comment #5
klausimerged.