protected function ContentDevelGenerate::develGenerateContentPreNode in Devel 8.2
Same name and namespace in other branches
- 8.3 devel_generate/src/Plugin/DevelGenerate/ContentDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\ContentDevelGenerate::develGenerateContentPreNode()
- 8 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'.
3 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.
- ContentDevelGenerate::validateDrushParams in devel_generate/
src/ Plugin/ DevelGenerate/ ContentDevelGenerate.php - Responsible for validating Drush params.
File
- devel_generate/
src/ Plugin/ DevelGenerate/ ContentDevelGenerate.php, line 489
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;
}