function Block::initializeIterator

Same name in other branches
  1. 9 core/modules/block/src/Plugin/migrate/source/Block.php \Drupal\block\Plugin\migrate\source\Block::initializeIterator()
  2. 8.9.x core/modules/block/src/Plugin/migrate/source/Block.php \Drupal\block\Plugin\migrate\source\Block::initializeIterator()
  3. 11.x core/modules/block/src/Plugin/migrate/source/Block.php \Drupal\block\Plugin\migrate\source\Block::initializeIterator()

Overrides SqlBase::initializeIterator

File

core/modules/block/src/Plugin/migrate/source/Block.php, line 81

Class

Block
Drupal 6/7 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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.