function Upload::query

Same name in other branches
  1. 8.9.x core/modules/file/src/Plugin/migrate/source/d6/Upload.php \Drupal\file\Plugin\migrate\source\d6\Upload::query()
  2. 10 core/modules/file/src/Plugin/migrate/source/d6/Upload.php \Drupal\file\Plugin\migrate\source\d6\Upload::query()
  3. 11.x core/modules/file/src/Plugin/migrate/source/d6/Upload.php \Drupal\file\Plugin\migrate\source\d6\Upload::query()

Overrides SqlBase::query

File

core/modules/file/src/Plugin/migrate/source/d6/Upload.php, line 31

Class

Upload
Drupal 6 upload source from database.

Namespace

Drupal\file\Plugin\migrate\source\d6

Code

public function query() {
    $query = $this->select('upload', 'u')
        ->distinct()
        ->fields('u', [
        'nid',
        'vid',
    ]);
    $query->innerJoin('node', 'n', static::JOIN);
    $query->addField('n', 'type');
    $query->addField('n', 'language');
    return $query;
}

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