function UserPictureFile::initializeIterator

Same name in other branches
  1. 9 core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php \Drupal\user\Plugin\migrate\source\d6\UserPictureFile::initializeIterator()
  2. 8.9.x core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php \Drupal\user\Plugin\migrate\source\d6\UserPictureFile::initializeIterator()
  3. 11.x core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php \Drupal\user\Plugin\migrate\source\d6\UserPictureFile::initializeIterator()

Overrides SqlBase::initializeIterator

File

core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php, line 54

Class

UserPictureFile
Drupal 6 user picture source from database.

Namespace

Drupal\user\Plugin\migrate\source\d6

Code

public function initializeIterator() {
    $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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.