function RuleExpression::addExpression
Overrides ExpressionContainerInterface::addExpression
File
-
src/
Plugin/ RulesExpression/ RuleExpression.php, line 192
Class
- RuleExpression
- Provides a rule, executing actions when conditions are met.
Namespace
Drupal\rules\Plugin\RulesExpressionCode
public function addExpression($plugin_id, ContextConfig $config = NULL) {
return $this->addExpressionObject($this->expressionManager
->createInstance($plugin_id, $config ? $config->toArray() : []));
}