You are here

public function RulesConditionalPredicateElement::__clone in Conditional Rules 7

Same name and namespace in other branches
  1. 8 includes/rules_conditional.core.inc \RulesConditionalPredicateElement::__clone()

By default we do a deep clone.

Overrides RulesContainerPlugin::__clone

File

includes/rules_conditional.core.inc, line 433
Conditional Rules framework implementation.

Class

RulesConditionalPredicateElement
Base conditional element that uses a predicate.

Code

public function __clone() {
  parent::__clone();
  $this->predicate = clone $this->predicate;
  $this->predicate->parent = $this;
}