You are here

protected function Block::initializeIterator in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/block/src/Plugin/migrate/source/Block.php \Drupal\block\Plugin\migrate\source\Block::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

File

core/modules/block/src/Plugin/migrate/source/Block.php, line 69
Contains \Drupal\block\Plugin\migrate\source\Block.

Class

Block
Drupal block source from database.

Namespace

Drupal\block\Plugin\migrate\source

Code

protected function initializeIterator() {
  $this->defaultTheme = $this
    ->variableGet('theme_default', 'Garland');
  $this->adminTheme = $this
    ->variableGet('admin_theme', null);
  return parent::initializeIterator();
}