function ContentDevelGenerate::develGenerateContentPreNode

Same name in other branches
  1. 4.x devel_generate/src/Plugin/DevelGenerate/ContentDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\ContentDevelGenerate::develGenerateContentPreNode()
  2. 5.x devel_generate/src/Plugin/DevelGenerate/ContentDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\ContentDevelGenerate::develGenerateContentPreNode()

Return the same array passed as parameter but with an array of uids for the key 'users'.

2 calls to ContentDevelGenerate::develGenerateContentPreNode()
ContentDevelGenerate::batchContentPreNode in devel_generate/src/Plugin/DevelGenerate/ContentDevelGenerate.php
ContentDevelGenerate::generateContent in devel_generate/src/Plugin/DevelGenerate/ContentDevelGenerate.php
Method responsible for creating content when the number of elements is less than 50.

File

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

Class

ContentDevelGenerate
Provides a ContentDevelGenerate plugin.

Namespace

Drupal\devel_generate\Plugin\DevelGenerate

Code

protected function develGenerateContentPreNode(&$results) {
    // Get user id.
    $users = $this->getUsers();
    $results['users'] = $users;
}