protected function MediaDevelGenerate::isBatch in Devel 4.x
Same name and namespace in other branches
- 8.3 devel_generate/src/Plugin/DevelGenerate/MediaDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\MediaDevelGenerate::isBatch()
Finds out if the media item generation will run in batch process.
Parameters
int $media_items_count: Number of media items to be generated.
Return value
bool If the process should be a batch process.
2 calls to MediaDevelGenerate::isBatch()
- MediaDevelGenerate::generateElements in devel_generate/
src/ Plugin/ DevelGenerate/ MediaDevelGenerate.php - Business logic relating with each DevelGenerate plugin.
- MediaDevelGenerate::validateDrushParams in devel_generate/
src/ Plugin/ DevelGenerate/ MediaDevelGenerate.php - Responsible for validating Drush params.
File
- devel_generate/
src/ Plugin/ DevelGenerate/ MediaDevelGenerate.php, line 543
Class
- MediaDevelGenerate
- Provides a plugin that generates media entities.
Namespace
Drupal\devel_generate\Plugin\DevelGenerateCode
protected function isBatch($media_items_count) {
return $media_items_count >= 50;
}