You are here

public function YieldRows::initializeIterator in Migrate Source CSV 8.2

Initializes the iterator with the source data.

Return value

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

Overrides CSV::initializeIterator

File

tests/modules/source_plugin_yield_test/src/Plugin/migrate/source/YieldRows.php, line 19

Class

YieldRows
Yields each image and sku.

Namespace

Drupal\source_plugin_yield_test\Plugin\migrate\source

Code

public function initializeIterator() {
  $file = parent::initializeIterator();
  return $this
    ->getYield($file);
}