function RulesComponentConfig::setExpression
Sets a Rules expression instance for this Rules component.
Parameters
\Drupal\rules\Engine\ExpressionInterface $expression: The expression to set.
Return value
$this
File
-
src/
Entity/ RulesComponentConfig.php, line 126
Class
- RulesComponentConfig
- Rules component configuration entity to persistently store configuration.
Namespace
Drupal\rules\EntityCode
public function setExpression(ExpressionInterface $expression) {
$this->component['expression'] = $expression->getConfiguration();
unset($this->componentObject);
return $this;
}