You are here

public function RulesContainerPlugin::componentVariables in Rules 7.2

Returns the specified variables, in case the plugin is used as component.

1 call to RulesContainerPlugin::componentVariables()
RulesActionContainer::providesVariables in includes/rules.core.inc
Returns info about all variables provided for later evaluated elements.

File

includes/rules.core.inc, line 2204
Rules base classes and interfaces needed for any rule evaluation.

Class

RulesContainerPlugin
Base class for ContainerPlugins like Rules, Logical Operations or Loops.

Code

public function &componentVariables() {
  if ($this
    ->isRoot()) {
    $this->info += array(
      'variables' => array(),
    );
    return $this->info['variables'];
  }

  // We have to return a reference in any case.
  $return = NULL;
  return $return;
}