You are here

public function UserPictureFile::prepareRow in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php \Drupal\user\Plugin\migrate\source\d6\UserPictureFile::prepareRow()

Add 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 59
Contains \Drupal\user\Plugin\migrate\source\d6\UserPictureFile.

Class

UserPictureFile
Drupal 6 user picture source from database.

Namespace

Drupal\user\Plugin\migrate\source\d6

Code

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);
}