You are here

public function UpdateProcessor::numberOfQueueItems in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/update/src/UpdateProcessor.php \Drupal\update\UpdateProcessor::numberOfQueueItems()

Retrieves the number of items in the update fetch queue.

Return value

int An integer estimate of the number of items in the queue.

Overrides UpdateProcessorInterface::numberOfQueueItems

See also

\Drupal\Core\Queue\QueueInterface::numberOfItems()

File

core/modules/update/src/UpdateProcessor.php, line 256

Class

UpdateProcessor
Process project update information.

Namespace

Drupal\update

Code

public function numberOfQueueItems() {
  return $this->fetchQueue
    ->numberOfItems();
}