You are here

public function RulesConditionalSwitch::__construct in Conditional Rules 8

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

File

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

Class

RulesConditionalSwitch
Switch conditional container.

Code

public function __construct($dataSelector = NULL) {
  parent::__construct();
  if (isset($dataSelector)) {
    $this->settings['data:select'] = $dataSelector;
  }
}