public function ReactionRuleConfig::setExpression in Rules 8.3
Sets a Rules expression instance for this Reaction rule.
Parameters
\Drupal\rules\Engine\ExpressionInterface $expression: The expression to set.
Return value
$this
1 call to ReactionRuleConfig::setExpression()
- ReactionRuleConfig::updateFromComponent in src/
Entity/ ReactionRuleConfig.php - Updates the configuration based upon the given component.
File
- src/
Entity/ ReactionRuleConfig.php, line 132
Class
- ReactionRuleConfig
- Reaction rule configuration entity to persistently store configuration.
Namespace
Drupal\rules\EntityCode
public function setExpression(ExpressionInterface $expression) {
$this->expressionObject = $expression;
$this->expression = $expression
->getConfiguration();
return $this;
}