You are here

public function ConditionExpressionContainerInterface::addCondition in Rules 8.3

Creates a condition expression and adds it to the container.

Parameters

string $condition_id: The condition plugin id.

\Drupal\rules\Context\ContextConfig $config: (optional) The configuration for the specified plugin.

Return value

\Drupal\rules\Core\RulesConditionInterface The created condition.

1 method overrides ConditionExpressionContainerInterface::addCondition()
ConditionExpressionContainer::addCondition in src/Engine/ConditionExpressionContainer.php
Creates a condition expression and adds it to the container.

File

src/Engine/ConditionExpressionContainerInterface.php, line 23

Class

ConditionExpressionContainerInterface
Contains condition expressions.

Namespace

Drupal\rules\Engine

Code

public function addCondition($condition_id, ContextConfig $config = NULL);