function UserPicture::query
Prepares query object to retrieve data from the source database.
This method should not be called directly. It is called automatically from SqlBase::prepareQuery().
Return value
\Drupal\Core\Database\Query\SelectInterface A Select query object with the source data.
Overrides SqlBase::query
File
- 
              core/modules/ user/ src/ Plugin/ migrate/ source/ d6/ UserPicture.php, line 27 
Class
- UserPicture
- Drupal 6 user picture source from database.
Namespace
Drupal\user\Plugin\migrate\source\d6Code
public function query() {
  $query = $this->select('users', 'u')
    ->condition('picture', '', '<>')
    ->fields('u', [
    'uid',
    'access',
    'picture',
  ])
    ->orderBy('u.access');
  return $query;
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
