You are here

protected function DrupalPicture7Migration::query in Drupal-to-Drupal data migration 7.2

We override the file query to identify which files are user pictures.

Return value

SelectQueryInterface

Overrides DrupalFile7Migration::query

File

d7/file.inc, line 124
Implementation of DrupalFileMigration for Drupal 7 sources.

Class

DrupalPicture7Migration
Pull user pictures in their own migration class, based on normal file migration.

Code

protected function query() {
  $query = $this
    ->baseQuery();
  $query
    ->innerJoin('users', 'u', 'f.fid=u.picture');
  return $query;
}