public function EmptySource::initializeIterator in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/src/Plugin/migrate/source/EmptySource.php \Drupal\migrate\Plugin\migrate\source\EmptySource::initializeIterator()
- 9 core/modules/migrate/src/Plugin/migrate/source/EmptySource.php \Drupal\migrate\Plugin\migrate\source\EmptySource::initializeIterator()
Initializes the iterator with the source data.
Return value
\Iterator Returns an iterable object of data for this source.
Overrides SourcePluginBase::initializeIterator
File
- core/
modules/ migrate/ src/ Plugin/ migrate/ source/ EmptySource.php, line 44
Class
- EmptySource
- Source returning a row based on the constants provided.
Namespace
Drupal\migrate\Plugin\migrate\sourceCode
public function initializeIterator() {
return new \ArrayIterator([
[
'id' => '',
],
]);
}