You are here

public function VariablesSet::getVariablesIds in Business Rules 8

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