You are here

public function MediaDevelGenerate::batchPreGenerate in Media entity 8

Batch version of preGenerate().

Parameters

array $vars: The input values from the settings form.

array $context: Batch job context.

File

src/Plugin/DevelGenerate/MediaDevelGenerate.php, line 314

Class

MediaDevelGenerate
Provides a MediaDevelGenerate plugin.

Namespace

Drupal\media_entity\Plugin\DevelGenerate

Code

public function batchPreGenerate($vars, &$context) {
  $context['results'] = $vars;
  $context['results']['num'] = 0;
  $this
    ->preGenerate($context['results']);
}