You are here

public function PhotosAccess::query in Album Photos 8.5

Same name and namespace in other branches
  1. 8.4 photos_access/src/Plugin/migrate/source/PhotosAccess.php \Drupal\photos_access\Plugin\migrate\source\PhotosAccess::query()
  2. 6.0.x photos_access/src/Plugin/migrate/source/PhotosAccess.php \Drupal\photos_access\Plugin\migrate\source\PhotosAccess::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

photos_access/src/Plugin/migrate/source/PhotosAccess.php, line 20

Class

PhotosAccess
Source plugin for photos album access.

Namespace

Drupal\photos_access\Plugin\migrate\source

Code

public function query() {
  $query = $this
    ->select('photos_access_album', 'a')
    ->fields('a', [
    'id',
    'nid',
    'viewid',
    'pass',
  ]);
  return $query;
}