You are here

protected function RulesEventSet::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 907
Contains plugin info and implementations not needed for rule evaluation.

Class

RulesEventSet
This class is used for caching the rules to be evaluated per event.

Code

protected function stateVariables($element = NULL) {
  return $this
    ->availableVariables();
}