function EmptySource::initializeIterator
Same name in other branches
- 9 core/modules/migrate/src/Plugin/migrate/source/EmptySource.php \Drupal\migrate\Plugin\migrate\source\EmptySource::initializeIterator()
- 10 core/modules/migrate/src/Plugin/migrate/source/EmptySource.php \Drupal\migrate\Plugin\migrate\source\EmptySource::initializeIterator()
- 11.x core/modules/migrate/src/Plugin/migrate/source/EmptySource.php \Drupal\migrate\Plugin\migrate\source\EmptySource::initializeIterator()
Overrides SourcePluginBase::initializeIterator
File
-
core/
modules/ migrate/ src/ Plugin/ migrate/ source/ EmptySource.php, line 40
Class
- EmptySource
- Source returning a row based on the constants provided.
Namespace
Drupal\migrate\Plugin\migrate\sourceCode
public function initializeIterator() {
return new \ArrayIterator([
[
'id' => '',
],
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.