protected function GenerateProducts::prepareGenerateProduct in Commerce Bulk 8
3 calls to GenerateProducts::prepareGenerateProduct()
- GenerateProducts::batchPrepareProduct in modules/
commerce_generate/ src/ Plugin/ DevelGenerate/ GenerateProducts.php - GenerateProducts::generateProducts in modules/
commerce_generate/ src/ Plugin/ DevelGenerate/ GenerateProducts.php - GenerateProducts::validateDrushParams in modules/
commerce_generate/ src/ Plugin/ DevelGenerate/ GenerateProducts.php
File
- modules/
commerce_generate/ src/ Plugin/ DevelGenerate/ GenerateProducts.php, line 553
Class
- GenerateProducts
- Provides a GenerateProducts plugin.
Namespace
Drupal\commerce_generate\Plugin\DevelGenerateCode
protected function prepareGenerateProduct(&$results) {
if ($results['owner']) {
$users = [
$results['owner'],
];
}
else {
$users = $this
->getUsers();
}
$results['users'] = $users;
}