function ExpressionManager::createAction

Overrides ExpressionManagerInterface::createAction

File

src/Engine/ExpressionManager.php, line 66

Class

ExpressionManager
Plugin manager for all Rules expressions.

Namespace

Drupal\rules\Engine

Code

public function createAction($id, ContextConfig $configuration = NULL) {
    $config_array = is_null($configuration) ? [] : $configuration->toArray();
    return $this->createInstance('rules_action', [
        'action_id' => $id,
    ] + $config_array);
}