public function UserPictureFile::initializeIterator in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php \Drupal\user\Plugin\migrate\source\d6\UserPictureFile::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/ user/ src/ Plugin/ migrate/ source/ d6/ UserPictureFile.php, line 49 - Contains \Drupal\user\Plugin\migrate\source\d6\UserPictureFile.
Class
- UserPictureFile
- Drupal 6 user picture source from database.
Namespace
Drupal\user\Plugin\migrate\source\d6Code
public function initializeIterator() {
$site_path = isset($this->configuration['site_path']) ? $this->configuration['site_path'] : 'sites/default';
$this->filePath = $this
->variableGet('file_directory_path', $site_path . '/files') . '/';
$this->tempFilePath = $this
->variableGet('file_directory_temp', '/tmp') . '/';
return parent::initializeIterator();
}