function SourcePluginBase::initializeIterator

Same name in other branches
  1. 8.9.x core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php \Drupal\migrate\Plugin\migrate\source\SourcePluginBase::initializeIterator()
  2. 10 core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php \Drupal\migrate\Plugin\migrate\source\SourcePluginBase::initializeIterator()
  3. 11.x core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php \Drupal\migrate\Plugin\migrate\source\SourcePluginBase::initializeIterator()

Initializes the iterator with the source data.

Return value

\Iterator Returns an iterable object of data for this source.

2 calls to SourcePluginBase::initializeIterator()
SourcePluginBase::doCount in core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php
Gets the source count.
SourcePluginBase::getIterator in core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php
Returns the iterator that will yield the row arrays to be processed.
6 methods override SourcePluginBase::initializeIterator()
ContentEntity::initializeIterator in core/modules/migrate_drupal/src/Plugin/migrate/source/ContentEntity.php
Initializes the iterator with the source data.
EmbeddedDataSource::initializeIterator in core/modules/migrate/src/Plugin/migrate/source/EmbeddedDataSource.php
Initializes the iterator with the source data.
EmptySource::initializeIterator in core/modules/migrate/src/Plugin/migrate/source/EmptySource.php
Initializes the iterator with the source data.
MigrateExternalTranslatedTestSource::initializeIterator in core/modules/migrate/tests/modules/migrate_external_translated_test/src/Plugin/migrate/source/MigrateExternalTranslatedTestSource.php
Initializes the iterator with the source data.
SqlBase::initializeIterator in core/modules/migrate/src/Plugin/migrate/source/SqlBase.php
Initializes the iterator with the source data.

... See full list

File

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

Class

SourcePluginBase
The base class for source plugins.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

protected abstract function initializeIterator();

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