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()
- 11.x 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 - SearchPage::initializeIterator in core/
modules/ search/ src/ Plugin/ migrate/ source/ d7/ SearchPage.php
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.