public function UserPictureFile::prepareRow in Drupal 10
Same name and namespace in other branches
- 8 core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php \Drupal\user\Plugin\migrate\source\d6\UserPictureFile::prepareRow()
- 9 core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php \Drupal\user\Plugin\migrate\source\d6\UserPictureFile::prepareRow()
Adds additional data to the row.
Parameters
\Drupal\migrate\Row $row: The row object.
Return value
bool FALSE if this row needs to be skipped.
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);
}