8.5.x SourcePluginBase.php SourcePluginBase::rewind()
8.0.x SourcePluginBase.php SourcePluginBase::rewind()
8.1.x SourcePluginBase.php SourcePluginBase::rewind()
8.2.x SourcePluginBase.php SourcePluginBase::rewind()
8.3.x SourcePluginBase.php SourcePluginBase::rewind()
8.4.x SourcePluginBase.php SourcePluginBase::rewind()
8.6.x SourcePluginBase.php SourcePluginBase::rewind()

Rewinds the iterator.

Implementation of \Iterator::rewind() - subclasses of SourcePluginBase should implement initializeIterator() to do any class-specific setup for iterating source records.

File

core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php, line 327

Class

SourcePluginBase
The base class for source plugins.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

public function rewind() {
  $this
    ->getIterator()
    ->rewind();
  $this
    ->next();
}