protected function ContentDevelGenerate::develGenerateContentPreNode in Devel 8
Same name and namespace in other branches
- 8.3 devel_generate/src/Plugin/DevelGenerate/ContentDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\ContentDevelGenerate::develGenerateContentPreNode()
- 8.2 devel_generate/src/Plugin/DevelGenerate/ContentDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\ContentDevelGenerate::develGenerateContentPreNode()
- 4.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\DevelGenerateCode
protected function develGenerateContentPreNode(&$results) {
// Get user id.
$users = $this
->getUsers();
$results['users'] = $users;
}