function ActionExpressionContainerInterface::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 ActionExpressionContainerInterface::addAction()
ActionExpressionContainer::addAction in src/Engine/ActionExpressionContainer.php
Creates an action expression and adds it to the container.

File

src/Engine/ActionExpressionContainerInterface.php, line 22

Class

ActionExpressionContainerInterface
Contains action expressions.

Namespace

Drupal\rules\Engine

Code

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