You are here

public function Yaml::initializeIterator in Migrate Source YAML 8

Initializes the iterator with the source data.

Return value

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

Overrides SourcePluginBase::initializeIterator

File

src/Plugin/migrate/source/Yaml.php, line 84

Class

Yaml
Migrate source plugin for Yaml.

Namespace

Drupal\migrate_source_yaml\Plugin\migrate\source

Code

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