function BlockContentDevelGenerate::batchContentKill

Batch wrapper for calling ContentKill.

File

devel_generate/src/Plugin/DevelGenerate/BlockContentDevelGenerate.php, line 310

Class

BlockContentDevelGenerate
Provides a BlockContentDevelGenerate plugin.

Namespace

Drupal\devel_generate\Plugin\DevelGenerate

Code

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