function ContentDevelGenerate::batchContentAddNode

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

File

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

Class

ContentDevelGenerate
Provides a ContentDevelGenerate plugin.

Namespace

Drupal\devel_generate\Plugin\DevelGenerate

Code

public function batchContentAddNode($vars, &$context) {
    $this->develGenerateContentAddNode($context['results']);
    $context['results']['num']++;
}