You are here

public function Recipe61::query in Recipe 8.2

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

src/Plugin/migrate/source/recipe61/Recipe61.php, line 41

Class

Recipe61
Drupal 6 recipe source from database.

Namespace

Drupal\recipe\Plugin\migrate\source\recipe61

Code

public function query() {
  $query = $this
    ->select('recipe', 'r')
    ->fields('r')
    ->orderBy('r.nid');
  $query
    ->join('node', 'n', 'r.nid = n.nid');
  $query
    ->fields('n', [
    'tnid',
    'language',
  ]);
  $this
    ->handleTranslations($query);
  return $query;
}