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\DevelGenerateCode
public function batchPreGenerate($vars, &$context) {
$context['results'] = $vars;
$context['results']['num'] = 0;
$this
->preGenerate($context['results']);
}