You are here

protected function Accordionblock::initializeIterator in Accordion Blocks 8

Initializes the iterator with the source data.

Return value

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

Overrides SqlBase::initializeIterator

File

src/Plugin/migrate/source/Accordionblock.php, line 45

Class

Accordionblock
Accordion block source from database

Namespace

Drupal\accordion_blocks\Plugin\migrate\source

Code

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