You are here

public function RuleExpressionInterface::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 RuleExpressionInterface::addCondition()
RuleExpression::addCondition in src/Plugin/RulesExpression/RuleExpression.php
Creates a condition expression and adds it to the container.

File

src/Engine/RuleExpressionInterface.php, line 23

Class

RuleExpressionInterface
Defines a rule.

Namespace

Drupal\rules\Engine

Code

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