You are here

public function LinkExtractorBatch::getNumberOfProcessedEntities in Link checker 8

Gets number of processed entities.

Return value

int Number of entities.

1 call to LinkExtractorBatch::getNumberOfProcessedEntities()
LinkExtractorBatch::batchProcessEntities in src/LinkExtractorBatch.php
Process part of entities within a batch operation.

File

src/LinkExtractorBatch.php, line 170

Class

LinkExtractorBatch
Helper service to handle extraction index.

Namespace

Drupal\linkchecker

Code

public function getNumberOfProcessedEntities() {
  $query = $this->database
    ->select('linkchecker_index', 'i');
  $query
    ->fields('i');
  $query = $query
    ->countQuery();
  $total = $query
    ->execute()
    ->fetchField();
  return $total;
}