function RuleExpression::addAction

Overrides RuleExpressionInterface::addAction

File

src/Plugin/RulesExpression/RuleExpression.php, line 154

Class

RuleExpression
Provides a rule, executing actions when conditions are met.

Namespace

Drupal\rules\Plugin\RulesExpression

Code

public function addAction($action_id, ContextConfig $config = NULL) {
    return $this->actions
        ->addAction($action_id, $config);
}