protected function File::initializeIterator in Zircon Profile 8
Same name in this branch
- 8 core/modules/file/src/Plugin/migrate/source/d6/File.php \Drupal\file\Plugin\migrate\source\d6\File::initializeIterator()
- 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
- 8.0 core/modules/file/src/Plugin/migrate/source/d7/File.php \Drupal\file\Plugin\migrate\source\d7\File::initializeIterator()
Implementation of MigrateSource::performRewind().
We could simply execute the query and be functionally correct, but we will take advantage of the PDO-based API to optimize the query up-front.
Overrides SqlBase::initializeIterator
File
- core/
modules/ file/ src/ Plugin/ migrate/ source/ d7/ File.php, line 75 - Contains \Drupal\file\Plugin\migrate\source\d7\File.
Class
- File
- Drupal 7 file source from database.
Namespace
Drupal\file\Plugin\migrate\source\d7Code
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();
}