You are here

protected function File::initializeIterator in Drupal 10

Same name in this branch
  1. 10 core/modules/file/src/Plugin/migrate/source/d6/File.php \Drupal\file\Plugin\migrate\source\d6\File::initializeIterator()
  2. 10 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. 8 core/modules/file/src/Plugin/migrate/source/d7/File.php \Drupal\file\Plugin\migrate\source\d7\File::initializeIterator()
  2. 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 iterable object of data for this source.

Overrides SqlBase::initializeIterator

File

core/modules/file/src/Plugin/migrate/source/d7/File.php, line 66

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);
  return parent::initializeIterator();
}