protected function ContentDevelGenerate::isBatch in Devel 4.x
Same name and namespace in other branches
- 8.3 devel_generate/src/Plugin/DevelGenerate/ContentDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\ContentDevelGenerate::isBatch()
- 8.2 devel_generate/src/Plugin/DevelGenerate/ContentDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\ContentDevelGenerate::isBatch()
Determines if the content should be generated in batch mode.
2 calls to ContentDevelGenerate::isBatch()
- ContentDevelGenerate::generateElements in devel_generate/
src/ Plugin/ DevelGenerate/ ContentDevelGenerate.php - Business logic relating with each DevelGenerate plugin.
- ContentDevelGenerate::validateDrushParams in devel_generate/
src/ Plugin/ DevelGenerate/ ContentDevelGenerate.php - Responsible for validating Drush params.
File
- devel_generate/
src/ Plugin/ DevelGenerate/ ContentDevelGenerate.php, line 567
Class
- ContentDevelGenerate
- Provides a ContentDevelGenerate plugin.
Namespace
Drupal\devel_generate\Plugin\DevelGenerateCode
protected function isBatch($content_count, $comment_count) {
return $content_count >= 50 || $comment_count >= 10;
}