You are here

public function PhotosCount::query in Album Photos 8.4

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

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

src/Plugin/migrate/source/PhotosCount.php, line 20

Class

PhotosCount
Source plugin for photos count content.

Namespace

Drupal\photos\Plugin\migrate\source

Code

public function query() {
  $query = $this
    ->select('photos_count', 't')
    ->fields('t', [
    'id',
    'cid',
    'changed',
    'type',
    'value',
  ]);
  return $query;
}