You are here

public function RulesConditionalCase::__construct in Conditional Rules 8

Same name and namespace in other branches
  1. 7 includes/rules_conditional.plugin.inc \RulesConditionalCase::__construct()

File

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

Class

RulesConditionalCase
Switch case.

Code

public function __construct($settings = array(), $fallThrough = FALSE) {
  parent::__construct();
  if (isset($settings['value'])) {
    $this->settings['value'] = $settings['value'];
  }
  elseif (isset($settings['value:select'])) {
    $this->settings['value:select'] = $settings['value:select'];
  }
  $this->settings += array(
    'fall_through' => $fallThrough,
  );
}