public function VariablesSet::append in Business Rules 2.x
Same name and namespace in other branches
- 8 src/VariablesSet.php \Drupal\business_rules\VariablesSet::append()
Append the variable to the array.
Parameters
\Drupal\business_rules\VariableObject $variable: The variable set.
File
- src/
VariablesSet.php, line 25
Class
- VariablesSet
- Class VariablesSet to be returned on each BusinessRulesVariable plugin.
Namespace
Drupal\business_rulesCode
public function append(VariableObject $variable) {
$this->variables[$variable
->getId()] = $variable;
}