function RuleExpression::getExpression

Overrides ExpressionContainerInterface::getExpression

File

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

Class

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

Namespace

Drupal\rules\Plugin\RulesExpression

Code

public function getExpression($uuid) {
    $condition = $this->conditions
        ->getExpression($uuid);
    if ($condition) {
        return $condition;
    }
    return $this->actions
        ->getExpression($uuid);
}