You are here

protected function GenerateProducts::generateElements in Commerce Bulk 8

File

modules/commerce_generate/src/Plugin/DevelGenerate/GenerateProducts.php, line 378

Class

GenerateProducts
Provides a GenerateProducts plugin.

Namespace

Drupal\commerce_generate\Plugin\DevelGenerate

Code

protected function generateElements(array $values) {
  if ($values['batch'] > $values['num']) {
    $this
      ->generateProducts($values);
  }
  else {
    $this
      ->batchGenerateProducts($values);
  }
}