You are here

protected function YamlFormSubmissionDevelGenerate::getUsers in YAML Form 8

Retrieve 50 uids from the database.

Return value

array An array of uids.

1 call to YamlFormSubmissionDevelGenerate::getUsers()
YamlFormSubmissionDevelGenerate::initializeGenerate in src/Plugin/DevelGenerate/YamlFormSubmissionDevelGenerate.php
Add 'users' that contains a list of uids.

File

src/Plugin/DevelGenerate/YamlFormSubmissionDevelGenerate.php, line 325

Class

YamlFormSubmissionDevelGenerate
Provides a YamlFormSubmissionDevelGenerate plugin.

Namespace

Drupal\yamlform\Plugin\DevelGenerate

Code

protected function getUsers() {
  $users = [];
  $result = db_query_range("SELECT uid FROM {users}", 0, 50);
  foreach ($result as $record) {
    $users[] = $record->uid;
  }
  return $users;
}