You are here

public function Term::query in Drupal 8

Same name in this branch
  1. 8 core/modules/taxonomy/src/Plugin/migrate/source/Term.php \Drupal\taxonomy\Plugin\migrate\source\Term::query()
  2. 8 core/modules/taxonomy/src/Plugin/migrate/source/d6/Term.php \Drupal\taxonomy\Plugin\migrate\source\d6\Term::query()
  3. 8 core/modules/taxonomy/src/Plugin/migrate/source/d7/Term.php \Drupal\taxonomy\Plugin\migrate\source\d7\Term::query()
Same name and namespace in other branches
  1. 9 core/modules/taxonomy/src/Plugin/migrate/source/d6/Term.php \Drupal\taxonomy\Plugin\migrate\source\d6\Term::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

1 call to Term::query()
TermLocalizedTranslation::query in core/modules/taxonomy/src/Plugin/migrate/source/d6/TermLocalizedTranslation.php
1 method overrides Term::query()
TermLocalizedTranslation::query in core/modules/taxonomy/src/Plugin/migrate/source/d6/TermLocalizedTranslation.php

File

core/modules/taxonomy/src/Plugin/migrate/source/d6/Term.php, line 23

Class

Term
Taxonomy term source from database.

Namespace

Drupal\taxonomy\Plugin\migrate\source\d6

Code

public function query() {
  $query = $this
    ->select('term_data', 'td')
    ->fields('td')
    ->distinct()
    ->orderBy('td.tid');
  if (isset($this->configuration['bundle'])) {
    $query
      ->condition('td.vid', (array) $this->configuration['bundle'], 'IN');
  }
  return $query;
}