function ProfileFieldTranslation::query

Same name in other branches
  1. 8.9.x core/modules/config_translation/src/Plugin/migrate/source/d6/ProfileFieldTranslation.php \Drupal\config_translation\Plugin\migrate\source\d6\ProfileFieldTranslation::query()
  2. 10 core/modules/config_translation/src/Plugin/migrate/source/d6/ProfileFieldTranslation.php \Drupal\config_translation\Plugin\migrate\source\d6\ProfileFieldTranslation::query()
  3. 11.x core/modules/config_translation/src/Plugin/migrate/source/d6/ProfileFieldTranslation.php \Drupal\config_translation\Plugin\migrate\source\d6\ProfileFieldTranslation::query()

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.