function RuleExpression::__clone

PHP magic __clone function.

File

src/Plugin/RulesExpression/RuleExpression.php, line 266

Class

RuleExpression
Provides a rule, executing actions when conditions are met.

Namespace

Drupal\rules\Plugin\RulesExpression

Code

public function __clone() {
    $this->actions = clone $this->actions;
    $this->actions
        ->setRoot($this->getRoot());
    $this->conditions = clone $this->conditions;
    $this->conditions
        ->setRoot($this->getRoot());
}