You are here

protected function ExceptionThrowingTestSource::initializeIterator in Migrate Tools 8.4

Same name and namespace in other branches
  1. 8.5 tests/modules/migrate_tools_test/src/Plugin/migrate/source/ExceptionThrowingTestSource.php \Drupal\migrate_tools_test\Plugin\migrate\source\ExceptionThrowingTestSource::initializeIterator()

Initializes the iterator with the source data.

Return value

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

Overrides SourcePluginBase::initializeIterator

File

tests/modules/migrate_tools_test/src/Plugin/migrate/source/ExceptionThrowingTestSource.php, line 41

Class

ExceptionThrowingTestSource
A simple migrate source for testing exception handling.

Namespace

Drupal\migrate_tools_test\Plugin\migrate\source

Code

protected function initializeIterator() {
  return new \ArrayIterator();
}