You are here

public function RulesConditionalContainer::evaluate in Conditional Rules 8

Same name and namespace in other branches
  1. 7 includes/rules_conditional.core.inc \RulesConditionalContainer::evaluate()

Evaluates the conditional statement.

File

includes/rules_conditional.core.inc, line 68
Conditional Rules framework implementation.

Class

RulesConditionalContainer
Base conditional statement plugin implementation.

Code

public function evaluate(RulesState $state) {

  // Evaluate selected branches.
  $branches = $this
    ->selectBranches($state);
  foreach ($branches as $branch) {
    $branch
      ->evaluate($state);
  }
}