You are here

protected function File::initializeIterator in Drupal 8

Same name in this branch
  1. 8 core/modules/file/src/Plugin/migrate/source/d6/File.php \Drupal\file\Plugin\migrate\source\d6\File::initializeIterator()
  2. 8 core/modules/file/src/Plugin/migrate/source/d7/File.php \Drupal\file\Plugin\migrate\source\d7\File::initializeIterator()
Same name and namespace in other branches
  1. 9 core/modules/file/src/Plugin/migrate/source/d7/File.php \Drupal\file\Plugin\migrate\source\d7\File::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/file/src/Plugin/migrate/source/d7/File.php, line 74

Class

File
Drupal 7 file source from database.

Namespace

Drupal\file\Plugin\migrate\source\d7

Code

protected function initializeIterator() {
  $this->publicPath = $this
    ->variableGet('file_public_path', 'sites/default/files');
  $this->privatePath = $this
    ->variableGet('file_private_path', NULL);
  $this->temporaryPath = $this
    ->variableGet('file_temporary_path', '/tmp');
  return parent::initializeIterator();
}