function RulesActionContainer::providesVariables

Overrides RulesPlugin::providesVariables

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 2559

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;
}