You are here

public function VariablesSet::getVariablesIds in Business Rules 2.x

Same name and namespace in other branches
  1. 8 src/VariablesSet.php \Drupal\business_rules\VariablesSet::getVariablesIds()

Return the variables ids.

Return value

array Array of variables ids.

File

src/VariablesSet.php, line 115

Class

VariablesSet
Class VariablesSet to be returned on each BusinessRulesVariable plugin.

Namespace

Drupal\business_rules

Code

public function getVariablesIds() {
  $ids = [];
  if ($this
    ->count()) {
    foreach ($this->variables as $variable) {
      $ids[] = $variable
        ->getId();
    }
  }
  return $ids;
}