protected function RulesConditionalIf::exportPredicate in Conditional Rules 8
Same name and namespace in other branches
- 7 includes/rules_conditional.plugin.inc \RulesConditionalIf::exportPredicate()
Exports predicate.
Overrides RulesConditionalPredicateElement::exportPredicate
File
- includes/
rules_conditional.plugin.inc, line 118 - Rules plugin implementation.
Class
- RulesConditionalIf
- The "if" clause.
Code
protected function exportPredicate($key = NULL) {
if ($this
->getPreviousSibling()) {
$key = 'ELSE IF';
}
return parent::exportPredicate($key);
}