protected function TempStore::initializeIterator in Multiversion 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/ TempStore.php, line 63
Class
- TempStore
- User source from json file.
Namespace
Drupal\multiversion\Plugin\migrate\sourceCode
protected function initializeIterator() {
$values = $this->tempStore
->getAll();
$result = new \ArrayIterator($values);
// Suppress errors (for PHP 5).
@$result
->uksort([
$this,
'sortKeys',
]);
return $result;
}