You are here

public function ProfileFieldTranslation::query in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/config_translation/src/Plugin/migrate/source/d6/ProfileFieldTranslation.php \Drupal\config_translation\Plugin\migrate\source\d6\ProfileFieldTranslation::query()
  2. 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 25

Class

ProfileFieldTranslation
Drupal 6 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;
}