function Variable::initializeIterator
Same name in other branches
- 9 core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php \Drupal\migrate_drupal\Plugin\migrate\source\Variable::initializeIterator()
- 8.9.x core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php \Drupal\migrate_drupal\Plugin\migrate\source\Variable::initializeIterator()
- 10 core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php \Drupal\migrate_drupal\Plugin\migrate\source\Variable::initializeIterator()
Overrides SqlBase::initializeIterator
2 methods override Variable::initializeIterator()
- ContactSettings::initializeIterator in core/
modules/ contact/ src/ Plugin/ migrate/ source/ ContactSettings.php - Initializes the iterator with the source data.
- SearchPage::initializeIterator in core/
modules/ search/ src/ Plugin/ migrate/ source/ d7/ SearchPage.php - Initializes the iterator with the source data.
File
-
core/
modules/ migrate_drupal/ src/ Plugin/ migrate/ source/ Variable.php, line 112
Class
- Variable
- Drupal 6/7 variable source from database.
Namespace
Drupal\migrate_drupal\Plugin\migrate\sourceCode
protected function initializeIterator() {
if ($this->count()) {
return new \ArrayIterator([
$this->values(),
]);
}
return new \ArrayIterator();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.