function ReactionRuleConfig::getExpression

Gets a Rules expression instance for this Reaction rule.

Return value

\Drupal\rules\Engine\ExpressionInterface A Rules expression instance.

1 call to ReactionRuleConfig::getExpression()
ReactionRuleConfig::getComponent in src/Entity/ReactionRuleConfig.php
Gets the Rules component that is invoked when the events are dispatched. The returned component has the definitions of the available event context set.

File

src/Entity/ReactionRuleConfig.php, line 147

Class

ReactionRuleConfig
Reaction rule configuration entity to persistently store configuration.

Namespace

Drupal\rules\Entity

Code

public function getExpression() {
    // Ensure that an executable Rules expression is available.
    if (!isset($this->expressionObject)) {
        $this->expressionObject = $this->getExpressionManager()
            ->createInstance($this->expression['id'], $this->expression);
    }
    return $this->expressionObject;
}