You are here

protected function Variable::initializeIterator in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php \Drupal\migrate_drupal\Plugin\migrate\source\Variable::initializeIterator()

Implementation of MigrateSource::performRewind().

We could simply execute the query and be functionally correct, but we will take advantage of the PDO-based API to optimize the query up-front.

Overrides SqlBase::initializeIterator

1 method overrides Variable::initializeIterator()
ContactSettings::initializeIterator in core/modules/contact/src/Plugin/migrate/source/ContactSettings.php
Implementation of MigrateSource::performRewind().

File

core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php, line 44
Contains \Drupal\migrate_drupal\Plugin\migrate\source\Variable.

Class

Variable
Drupal variable source from database.

Namespace

Drupal\migrate_drupal\Plugin\migrate\source

Code

protected function initializeIterator() {
  return new \ArrayIterator(array(
    $this
      ->values(),
  ));
}