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\Engine

Code

public function addExpression($plugin_id, ContextConfig $config = NULL) {
    return $this->addExpressionObject($this->expressionManager
        ->createInstance($plugin_id, $config ? $config->toArray() : []));
}