You are here

public function RulesActionContainer::providesVariables in Rules 7.2

Returns info about all variables provided for later evaluated elements.

Overrides RulesPlugin::providesVariables

See also

self::pluginProvidesVariables()

1 call to RulesActionContainer::providesVariables()
Rule::providesVariables in includes/rules.plugins.inc
Overridden to expose the variables of all actions for embedded rules.
1 method overrides RulesActionContainer::providesVariables()
Rule::providesVariables in includes/rules.plugins.inc
Overridden to expose the variables of all actions for embedded rules.

File

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

Class

RulesActionContainer
Base class for all action containers.

Code

public function providesVariables() {
  $provides = parent::providesVariables();
  if (isset($this->info['provides']) && ($vars = $this
    ->componentVariables())) {

    // Determine the full variable info for the provided variables. Note that
    // we only support providing variables list in the component vars.
    $provides += array_intersect_key($vars, array_flip($this->info['provides']));
  }
  return $provides;
}