You are here

public function Asset::query in farmOS 2.x

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

1 call to Asset::query()
SensorAsset::query in modules/core/migrate/src/Plugin/migrate/source/d7/SensorAsset.php
1 method overrides Asset::query()
SensorAsset::query in modules/core/migrate/src/Plugin/migrate/source/d7/SensorAsset.php

File

modules/core/asset/src/Plugin/migrate/source/d7/Asset.php, line 21

Class

Asset
Asset source from database.

Namespace

Drupal\asset\Plugin\migrate\source\d7

Code

public function query() {
  $query = $this
    ->select('farm_asset', 'fa')
    ->fields('fa')
    ->distinct()
    ->orderBy('id');
  if (isset($this->configuration['bundle'])) {
    $query
      ->condition('fa.type', (array) $this->configuration['bundle'], 'IN');
  }
  return $query;
}