function ContentEntity::initializeIterator
Same name in other branches
- 9 core/modules/migrate_drupal/src/Plugin/migrate/source/ContentEntity.php \Drupal\migrate_drupal\Plugin\migrate\source\ContentEntity::initializeIterator()
- 8.9.x core/modules/migrate_drupal/src/Plugin/migrate/source/ContentEntity.php \Drupal\migrate_drupal\Plugin\migrate\source\ContentEntity::initializeIterator()
- 11.x core/modules/migrate_drupal/src/Plugin/migrate/source/ContentEntity.php \Drupal\migrate_drupal\Plugin\migrate\source\ContentEntity::initializeIterator()
Initializes the iterator with the source data.
Return value
\Generator A data generator for this source.
Overrides SourcePluginBase::initializeIterator
File
-
core/
modules/ migrate_drupal/ src/ Plugin/ migrate/ source/ ContentEntity.php, line 167
Class
- ContentEntity
- Source plugin to get content entities from the current version of Drupal.
Namespace
Drupal\migrate_drupal\Plugin\migrate\sourceCode
protected function initializeIterator() {
$ids = $this->query()
->execute();
return $this->yieldEntities($ids);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.