You are here

public function ExpressionBase::setRoot in Rules 8.3

Set the root expression for this expression if it is nested.

Parameters

\Drupal\rules\Engine\ExpressionInterface $root: The root expression object.

Return value

$this

Overrides ExpressionInterface::setRoot

File

src/Engine/ExpressionBase.php, line 138

Class

ExpressionBase
Base class for rules expressions.

Namespace

Drupal\rules\Engine

Code

public function setRoot(ExpressionInterface $root) {
  $this->root = $root;
  return $this;
}