function ProfileFieldTranslation::query
Same name in other branches
- 9 core/modules/config_translation/src/Plugin/migrate/source/d6/ProfileFieldTranslation.php \Drupal\config_translation\Plugin\migrate\source\d6\ProfileFieldTranslation::query()
- 10 core/modules/config_translation/src/Plugin/migrate/source/d6/ProfileFieldTranslation.php \Drupal\config_translation\Plugin\migrate\source\d6\ProfileFieldTranslation::query()
- 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 20
Class
- ProfileFieldTranslation
- Gets 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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.