You are here

public function RuleConditionSet::action in Conditional Rules 8

Same name and namespace in other branches
  1. 7 includes/rules_conditional.plugin.inc \RuleConditionSet::action()

Adds an action to the rule condition. Pass either an instance of the RulesActionInterface or the arguments as needed by rules_action().

This method can be chained.

File

includes/rules_conditional.plugin.inc, line 503
Rules plugin implementation.

Class

RuleConditionSet
Rule as condition set.

Code

public function action($name, $settings = array()) {
  $this->actions
    ->action($name, $settings);
  return $this;
}