You are here

public function ProfileFieldTranslation::query in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/config_translation/src/Plugin/migrate/source/d6/ProfileFieldTranslation.php \Drupal\config_translation\Plugin\migrate\source\d6\ProfileFieldTranslation::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides ProfileField::query

File

core/modules/config_translation/src/Plugin/migrate/source/d6/ProfileFieldTranslation.php, line 20

Class

ProfileFieldTranslation
Gets i18n strings profile field source from database.

Namespace

Drupal\config_translation\Plugin\migrate\source\d6

Code

public function query() {
  $query = parent::query();
  $query
    ->fields('i18n', [
    'property',
  ])
    ->fields('lt', [
    'lid',
    'translation',
    'language',
  ]);
  $query
    ->leftJoin('i18n_strings', 'i18n', 'i18n.objectid = pf.name');
  $query
    ->innerJoin('locales_target', 'lt', 'lt.lid = i18n.lid');
  return $query;
}