You are here

public function SourcePluginBase::rewind in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php \Drupal\migrate\Plugin\migrate\source\SourcePluginBase::rewind()

Rewind the iterator.

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

File

core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php, line 259
Contains \Drupal\migrate\Plugin\migrate\source\SourcePluginBase.

Class

SourcePluginBase
The base class for all source plugins.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

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