public function Simple::process in Organic groups 8
Starts the deletion process.
Overrides OgDeleteOrphansInterface::process
File
- src/
Plugin/ OgDeleteOrphans/ Simple.php, line 43
Class
- Simple
- Performs an on-the-fly deletion of orphans.
Namespace
Drupal\og\Plugin\OgDeleteOrphansCode
public function process() {
$queue = $this
->getQueue();
while ($item = $queue
->claimItem()) {
$data = $item->data;
$this
->deleteOrphan($data['type'], $data['id']);
$queue
->deleteItem($item);
}
}