function SourcePluginBase::getIterator

Same name and namespace in other branches
  1. 8.9.x core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php \Drupal\migrate\Plugin\migrate\source\SourcePluginBase::getIterator()
  2. 10 core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php \Drupal\migrate\Plugin\migrate\source\SourcePluginBase::getIterator()
  3. 11.x 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.

1 call to SourcePluginBase::getIterator()
SourcePluginBase::doCount in core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php
Gets the source count.

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.