function VariableAdd::doExecute

Add a variable.

Parameters

string $type: The data type the new variable is of.

mixed $value: The variable to add.

File

src/Plugin/RulesAction/VariableAdd.php, line 45

Class

VariableAdd
Provides an 'Add a variable' action.

Namespace

Drupal\rules\Plugin\RulesAction

Code

protected function doExecute($type, $value) {
    $this->setProvidedValue('variable_added', $value);
}