You are here

protected function Block::initializeIterator in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/block/src/Plugin/migrate/source/Block.php \Drupal\block\Plugin\migrate\source\Block::initializeIterator()

Initializes the iterator with the source data.

Return value

\Iterator Returns an iteratable object of data for this source.

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