function MediaDevelGenerate::batchMediaKill
Provides a batch version of mediaKill().
Parameters
array $vars: The input values from the settings form.
iterable $context: Batch job context.
See also
File
- 
              devel_generate/
src/ Plugin/ DevelGenerate/ MediaDevelGenerate.php, line 365  
Class
- MediaDevelGenerate
 - Provides a plugin that generates media entities.
 
Namespace
Drupal\devel_generate\Plugin\DevelGenerateCode
public function batchMediaKill(array $vars, iterable &$context) : void {
  if ($this->drushBatch) {
    $this->mediaKill($vars);
  }
  else {
    $this->mediaKill($context['results']);
  }
}