You are here

public function StatsTracker::resetTotals in Purge 8.3

Reset the total counters.

This is a shorthand for these calls:

  • ::totalFailed()->set(0)
  • ::totalProcessing()->set(0)
  • ::totalSucceeded()->set(0)
  • ::totalNotSupported()->set(0)

Overrides StatsTrackerInterface::resetTotals

File

src/Plugin/Purge/Queue/StatsTracker.php, line 175

Class

StatsTracker
Provides the queue statistics tracker.

Namespace

Drupal\purge\Plugin\Purge\Queue

Code

public function resetTotals() {
  $this
    ->totalFailed()
    ->set(0);
  $this
    ->totalProcessing()
    ->set(0);
  $this
    ->totalSucceeded()
    ->set(0);
  $this
    ->totalNotSupported()
    ->set(0);
}