function RuleExpressionInterface::addAction

Creates an action expression and adds it to the container.

Parameters

string $action_id: The action plugin id.

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

Return value

$this

1 method overrides RuleExpressionInterface::addAction()
RuleExpression::addAction in src/Plugin/RulesExpression/RuleExpression.php
Creates an action expression and adds it to the container.

File

src/Engine/RuleExpressionInterface.php, line 53

Class

RuleExpressionInterface
Defines a rule.

Namespace

Drupal\rules\Engine

Code

public function addAction($action_id, ContextConfig $config = NULL);