You are here

public function RulesConditionalSwitch::__construct in Conditional Rules 7

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

Overrides RulesContainerPlugin::__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;
  }
}