function ActionExpressionContainer::addAction
Overrides ActionExpressionContainerInterface::addAction
File
-
src/
Engine/ ActionExpressionContainer.php, line 66
Class
- ActionExpressionContainer
- Container for actions.
Namespace
Drupal\rules\EngineCode
public function addAction($action_id, ContextConfig $config = NULL) {
return $this->addExpressionObject($this->expressionManager
->createAction($action_id)
->setConfiguration($config ? $config->toArray() : []));
}