You are here

public function RulesConditionalContainer::action in Conditional Rules 8

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

Adds an action to the active fluent statement.

Pass either an instance of the RulesActionInterface or the arguments as needed by rules_action().

Parameters

$name:

array $settings:

Return value

$this Returns $this for fluent interface.

File

includes/rules_conditional.core.inc, line 58
Conditional Rules framework implementation.

Class

RulesConditionalContainer
Base conditional statement plugin implementation.

Code

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