You are here

protected function RulesLoop::stateVariables in Rules 7.2

Returns available state variables for an element.

Returns info about variables available in the evaluation state for any children elements or if given for a special child element.

Parameters

$element: The element for which the available state variables should be returned. If NULL is given, the variables available before any children are invoked are returned. If set to TRUE, the variables available after evaluating all children will be returned.

Overrides RulesContainerPlugin::stateVariables

File

includes/rules.plugins.inc, line 740
Contains plugin info and implementations not needed for rule evaluation.

Class

RulesLoop
A loop element.

Code

protected function stateVariables($element = NULL) {
  return array(
    $this->settings['item:var'] => $this
      ->listItemInfo(),
  ) + parent::stateVariables($element);
}