function UserPictureFile::prepareRow
Same name in other branches
- 8.9.x core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php \Drupal\user\Plugin\migrate\source\d6\UserPictureFile::prepareRow()
- 10 core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php \Drupal\user\Plugin\migrate\source\d6\UserPictureFile::prepareRow()
- 11.x core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php \Drupal\user\Plugin\migrate\source\d6\UserPictureFile::prepareRow()
Overrides SourcePluginBase::prepareRow
File
-
core/
modules/ user/ src/ Plugin/ migrate/ source/ d6/ UserPictureFile.php, line 64
Class
- UserPictureFile
- Drupal 6 user picture source from database.
Namespace
Drupal\user\Plugin\migrate\source\d6Code
public function prepareRow(Row $row) {
$row->setSourceProperty('filename', basename($row->getSourceProperty('picture')));
$row->setSourceProperty('file_directory_path', $this->filePath);
$row->setSourceProperty('temp_directory_path', $this->tempFilePath);
return parent::prepareRow($row);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.