public function RulesConditionalPredicateElement::canEvaluate in Conditional Rules 7
Same name and namespace in other branches
- 8 includes/rules_conditional.core.inc \RulesConditionalPredicateElement::canEvaluate()
Evaluates the predicate.
Overrides RulesConditionalElement::canEvaluate
1 call to RulesConditionalPredicateElement::canEvaluate()
- RulesConditionalWhile::evaluate in includes/
rules_conditional.plugin.inc - Evaluate, whereas by default new vars are visible in the parent's scope.
File
- includes/
rules_conditional.core.inc, line 504 - Conditional Rules framework implementation.
Class
- RulesConditionalPredicateElement
- Base conditional element that uses a predicate.
Code
public function canEvaluate(RulesState $state) {
return $this->predicate
->evaluate($state);
}