public static function Batch::step in Organic groups 8
Batch step definition callback to process one queue item.
File
- src/
Plugin/ OgDeleteOrphans/ Batch.php, line 72
Class
- Batch
- Performs a batch deletion of orphans.
Namespace
Drupal\og\Plugin\OgDeleteOrphansCode
public static function step($context) {
if (!empty($context['interrupted'])) {
return;
}
\Drupal::getContainer()
->get('plugin.manager.og.delete_orphans')
->createInstance('batch', [])
->process();
}