protected function Block::initializeIterator in Drupal 10
Same name and namespace in other branches
- 8 core/modules/block/src/Plugin/migrate/source/Block.php \Drupal\block\Plugin\migrate\source\Block::initializeIterator()
- 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 iterable object of data for this source.
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\sourceCode
protected function initializeIterator() {
$this->defaultTheme = $this
->variableGet('theme_default', 'Garland');
$this->adminTheme = $this
->variableGet('admin_theme', NULL);
return parent::initializeIterator();
}