function ContentDevelGenerate::getUsers

Retrieve 50 uids from the database.

1 call to ContentDevelGenerate::getUsers()
ContentDevelGenerate::develGenerateContentPreNode in devel_generate/src/Plugin/DevelGenerate/ContentDevelGenerate.php
Return the same array passed as parameter but with an array of uids for the key 'users'.

File

devel_generate/src/Plugin/DevelGenerate/ContentDevelGenerate.php, line 497

Class

ContentDevelGenerate
Provides a ContentDevelGenerate plugin.

Namespace

Drupal\devel_generate\Plugin\DevelGenerate

Code

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