You are here

public function EckEntity::query in Entity Construction Kit (ECK) 8

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

1 call to EckEntity::query()
EckEntityTranslation::query in src/Plugin/migrate/source/d7/EckEntityTranslation.php
1 method overrides EckEntity::query()
EckEntityTranslation::query in src/Plugin/migrate/source/d7/EckEntityTranslation.php

File

src/Plugin/migrate/source/d7/EckEntity.php, line 76

Class

EckEntity
Drupal 7 ECK Entity source from database.

Namespace

Drupal\eck\Plugin\migrate\source\d7

Code

public function query() {
  $query = $this
    ->select($this->eckTable, 'eck')
    ->fields('eck');
  if (isset($this->bundle)) {
    $query
      ->condition('eck.type', (array) $this->bundle, 'IN');
  }
  return $query;
}