You are here

public function IteratingServiceBaseTrait::current in Purge 8.3

Return the current element.

File

src/IteratingServiceBaseTrait.php, line 44

Class

IteratingServiceBaseTrait
Adds \Iterator logic to \Drupal\purge\ServiceInterface derivatives.

Namespace

Drupal\purge

Code

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