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. 10 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 74

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();
}

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