public function RevisionsManager::queueNodeForCronJob in Node Revisions Autoclean 8
Queues a node for cronjob.
Parameters
Drupal\node\Entity\Node $node: The node.
File
- src/
Services/ RevisionsManager.php, line 207
Class
- RevisionsManager
- Class RevisionsManager.
Namespace
Drupal\node_revisions_autoclean\ServicesCode
public function queueNodeForCronJob(Node $node) {
$queue = $this->queueFactory
->get('cleanup_revisions_worker');
$queue
->createItem((object) [
'node' => $node,
]);
}