function ExpressionInterface::getRoot

Returns the root expression if this expression is nested.

Return value

\Drupal\rules\Engine\ExpressionInterface The root expression or $this if the expression is the root element itself.

1 method overrides ExpressionInterface::getRoot()
ExpressionBase::getRoot in src/Engine/ExpressionBase.php
Returns the root expression if this expression is nested.

File

src/Engine/ExpressionInterface.php, line 51

Class

ExpressionInterface
Defines the interface for Rules expressions.

Namespace

Drupal\rules\Engine

Code

public function getRoot();