You are here

public function GenerateProducts::batchProductKill in Commerce Bulk 8

File

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

Class

GenerateProducts
Provides a GenerateProducts plugin.

Namespace

Drupal\commerce_generate\Plugin\DevelGenerate

Code

public function batchProductKill($vars, &$context) {
  if ($this->drushBatch) {
    $this
      ->productKill($vars);
  }
  else {
    $this
      ->productKill($context['results']);
  }
}