You are here

public function EmbeddedDataSource::initializeIterator in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/src/Plugin/migrate/source/EmbeddedDataSource.php \Drupal\migrate\Plugin\migrate\source\EmbeddedDataSource::initializeIterator()

Initialize the iterator with the source data.

Return value

array An array of the data for this source.

Overrides SourcePluginBase::initializeIterator

File

core/modules/migrate/src/Plugin/migrate/source/EmbeddedDataSource.php, line 64
Contains \Drupal\migrate\Plugin\migrate\source\EmbeddedDataSource.

Class

EmbeddedDataSource
Source which takes its data directly from the plugin config.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

public function initializeIterator() {
  return new \ArrayIterator($this->dataRows);
}