You are here

protected function SourcePluginBase::getIterator in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php \Drupal\migrate\Plugin\migrate\source\SourcePluginBase::getIterator()
  2. 9 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 The iterator that will yield the row arrays to be processed.

6 calls 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.
SourcePluginBase::fetchNextRow in core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php
Position the iterator to the following row.
SourcePluginBase::next in core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php
SourcePluginBase::rewind in core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php
SqlBase::fetchNextBatch in core/modules/migrate/src/Plugin/migrate/source/SqlBase.php
Prepares query for the next set of data from the source database.

... See full list

File

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

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;
}