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

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

Return value

\Iterator The iterator that will yield the row arrays to be processed.

1 call to SourcePluginBase::getIterator()
SourcePluginBase::doCount in core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php
Gets the source count checking if the source is countable or using the iterator_count function.

File

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

Class

SourcePluginBase
The base class for source plugins.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

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