protected function RulesConditionalIf::importPredicate in Conditional Rules 8
Same name and namespace in other branches
- 7 includes/rules_conditional.plugin.inc \RulesConditionalIf::importPredicate()
Imports predicate.
Overrides RulesConditionalPredicateElement::importPredicate
File
- includes/
rules_conditional.plugin.inc, line 103 - Rules plugin implementation.
Class
- RulesConditionalIf
- The "if" clause.
Code
protected function importPredicate($export, $key = NULL) {
$plugin = strtoupper($this
->plugin());
$pluginInfo = $this
->pluginInfo();
$keys = !empty($pluginInfo['import keys']) ? $pluginInfo['import keys'] : array(
$plugin,
);
foreach ($keys as $key) {
if (isset($export[$key])) {
parent::importPredicate($export, $key);
break;
}
}
}