You are here

public function RulesConditionalElement::providesVariables in Conditional Rules 7

Same name and namespace in other branches
  1. 8 includes/rules_conditional.core.inc \RulesConditionalElement::providesVariables()

Returns info about all variables provided for later evaluated elements.

Overrides RulesActionContainer::providesVariables

See also

self::pluginProvidesVariables()

1 method overrides RulesConditionalElement::providesVariables()
RulesConditionalWhile::providesVariables in includes/rules_conditional.plugin.inc
Returns info about all variables provided for later evaluated elements.

File

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

Class

RulesConditionalElement
Base conditional element plugin implementation.

Code

public function providesVariables() {
  $provides = parent::providesVariables();
  if (!$this
    ->isRoot()) {
    foreach ($this->children as $action) {
      $provides += $action
        ->providesVariables();
    }
  }
  return $provides;
}