You are here

protected function SourcePluginBase::getIterator 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::getIterator()

Returns the iterator that will yield the row arrays to be processed.

Return value

\Iterator

File

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

Class

SourcePluginBase
The base class for all source plugins.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

protected function getIterator() {
  if (!isset($this->iterator)) {
    $this->iterator = $this
      ->initializeIterator();
  }
  return $this->iterator;
}