function ContentDevelGenerate::batchContentKill

Same name in other branches
  1. 8.x-1.x devel_generate/src/Plugin/DevelGenerate/ContentDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\ContentDevelGenerate::batchContentKill()
  2. 4.x devel_generate/src/Plugin/DevelGenerate/ContentDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\ContentDevelGenerate::batchContentKill()

Batch wrapper for calling ContentKill.

File

devel_generate/src/Plugin/DevelGenerate/ContentDevelGenerate.php, line 504

Class

ContentDevelGenerate
Provides a ContentDevelGenerate plugin.

Namespace

Drupal\devel_generate\Plugin\DevelGenerate

Code

public function batchContentKill(array $vars, array &$context) : void {
    if ($this->drushBatch) {
        $this->contentKill($vars);
    }
    else {
        $this->contentKill($context['results']);
    }
}