You are here

public function StatsTracker::current in Purge 8.3

Return the current element.

File

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

Class

StatsTracker
Provides the queue statistics tracker.

Namespace

Drupal\purge\Plugin\Purge\Queue

Code

public function current() {
  $this
    ->initializeStatistics();
  if ($this
    ->valid()) {
    return $this->instances[$this->position];
  }
  return FALSE;
}