You are here

public function LinkCheckerBatch::processQueueItem in Link checker 8

Process next item in queue.

1 call to LinkCheckerBatch::processQueueItem()
LinkCheckerBatch::batchProcessQueue in src/LinkCheckerBatch.php
Process linkchecker_check queue.

File

src/LinkCheckerBatch.php, line 73

Class

LinkCheckerBatch
Helper service to handle links checking.

Namespace

Drupal\linkchecker

Code

public function processQueueItem() {
  $item = $this->queueFactory
    ->get('linkchecker_check')
    ->claimItem();
  if (!empty($item)) {
    $this->queueWorkerManager
      ->createInstance('linkchecker_check')
      ->processItem($item->data);
  }
}