function ConditionExpressionContainer::addCondition
Overrides ConditionExpressionContainerInterface::addCondition
File
-
src/
Engine/ ConditionExpressionContainer.php, line 67
Class
- ConditionExpressionContainer
- Container for conditions.
Namespace
Drupal\rules\EngineCode
public function addCondition($condition_id, ContextConfig $config = NULL) {
return $this->addExpressionObject($this->expressionManager
->createCondition($condition_id)
->setConfiguration($config ? $config->toArray() : []));
}