public function ProfileFieldTranslation::query in Drupal 9
Same name and namespace in other branches
- 8 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 24
Class
- ProfileFieldTranslation
- Drupal 6 i18n strings profile field source from database.
Namespace
Drupal\config_translation\Plugin\migrate\source\d6Code
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;
}