You are here

public function VariablesSet::append in Business Rules 8

Same name and namespace in other branches
  1. 2.x 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_rules

Code

public function append(VariableObject $variable) {
  $this->variables[$variable
    ->getId()] = $variable;
}