function ExpressionContainerBase::addExpression
Overrides ExpressionContainerInterface::addExpression
File
-
src/
Engine/ ExpressionContainerBase.php, line 67
Class
- ExpressionContainerBase
- Common base class for action and condition expression containers.
Namespace
Drupal\rules\EngineCode
public function addExpression($plugin_id, ContextConfig $config = NULL) {
return $this->addExpressionObject($this->expressionManager
->createInstance($plugin_id, $config ? $config->toArray() : []));
}