You are here

public function IteratingServiceBaseTrait::rewind in Purge 8.3

Rewind the Iterator to the first element.

1 call to IteratingServiceBaseTrait::rewind()
IteratingServiceBaseTrait::reloadIterator in src/IteratingServiceBaseTrait.php
Rewind the iterator and destruct loaded plugin instances.

File

src/IteratingServiceBaseTrait.php, line 92

Class

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

Namespace

Drupal\purge

Code

public function rewind() {
  $this->position = 0;
}