You are here

protected function RulesConditionalSwitch::call_case in Conditional Rules 7

Same name and namespace in other branches
  1. 8 includes/rules_conditional.plugin.inc \RulesConditionalSwitch::call_case()

Adds a "case" statement, for use with magic call.

File

includes/rules_conditional.plugin.inc, line 179
Rules plugin implementation.

Class

RulesConditionalSwitch
Switch conditional container.

Code

protected function call_case($settings = array(), $fallThrough = FALSE) {
  $this->fluentElement = $element = rules_conditional_case($settings, $fallThrough);
  $element
    ->setParent($this);
  return $this;
}