function ExpressionBase::getRoot
Overrides ExpressionInterface::getRoot
2 calls to ExpressionBase::getRoot()
- RuleExpression::__clone in src/
Plugin/ RulesExpression/ RuleExpression.php - PHP magic __clone function.
- RuleExpression::__construct in src/
Plugin/ RulesExpression/ RuleExpression.php - Constructs a new class instance.
File
-
src/
Engine/ ExpressionBase.php, line 127
Class
- ExpressionBase
- Base class for rules expressions.
Namespace
Drupal\rules\EngineCode
public function getRoot() {
if (isset($this->root)) {
// @todo This seems to be the parent, not root.
return $this->root
->getRoot();
}
return $this;
}