public function LanguageContentSettingsTaxonomyVocabulary::query in Drupal 8
Same name in this branch
- 8 core/modules/language/src/Plugin/migrate/source/d6/LanguageContentSettingsTaxonomyVocabulary.php \Drupal\language\Plugin\migrate\source\d6\LanguageContentSettingsTaxonomyVocabulary::query()
- 8 core/modules/language/src/Plugin/migrate/source/d7/LanguageContentSettingsTaxonomyVocabulary.php \Drupal\language\Plugin\migrate\source\d7\LanguageContentSettingsTaxonomyVocabulary::query()
Same name and namespace in other branches
- 9 core/modules/language/src/Plugin/migrate/source/d6/LanguageContentSettingsTaxonomyVocabulary.php \Drupal\language\Plugin\migrate\source\d6\LanguageContentSettingsTaxonomyVocabulary::query()
- 10 core/modules/language/src/Plugin/migrate/source/d6/LanguageContentSettingsTaxonomyVocabulary.php \Drupal\language\Plugin\migrate\source\d6\LanguageContentSettingsTaxonomyVocabulary::query()
Return value
\Drupal\Core\Database\Query\SelectInterface
Overrides SqlBase::query
File
- core/
modules/ language/ src/ Plugin/ migrate/ source/ d6/ LanguageContentSettingsTaxonomyVocabulary.php, line 21
Class
- LanguageContentSettingsTaxonomyVocabulary
- Drupal 6 i18n vocabularies source from database.
Namespace
Drupal\language\Plugin\migrate\source\d6Code
public function query() {
$query = $this
->select('vocabulary', 'v')
->fields('v', [
'vid',
]);
if ($this
->getDatabase()
->schema()
->fieldExists('vocabulary', 'language')) {
$query
->addField('v', 'language');
}
return $query;
}