protected function VariableAdd::doExecute in Rules 8.3
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 43
Class
- VariableAdd
- Provides an 'Add a variable' action.
Namespace
Drupal\rules\Plugin\RulesActionCode
protected function doExecute($type, $value) {
$this
->setProvidedValue('variable_added', $value);
}