public function StatsTracker::numberOfItems in Purge 8.3
The number of items currently in the queue.
Return value
\Drupal\purge\Plugin\Purge\Queue\NumberOfItemsStatistic The \Drupal\purge\CounterExplainedCounterInterface compliant statistic.
Overrides StatsTrackerInterface::numberOfItems
File
- src/
Plugin/ Purge/ Queue/ StatsTracker.php, line 123
Class
- StatsTracker
- Provides the queue statistics tracker.
Namespace
Drupal\purge\Plugin\Purge\QueueCode
public function numberOfItems() {
$this
->initializeStatistics();
return $this->instances[self::NUMBER_OF_ITEMS];
}