You are here

protected function Block::initializeIterator in Drupal 9

Same name and namespace in other branches
  1. 8 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 iterable object of data for this source.

Overrides SqlBase::initializeIterator

File

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

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