You are here

public function LanguageContentSettingsTaxonomyVocabulary::query in Drupal 9

Same name in this branch
  1. 9 core/modules/language/src/Plugin/migrate/source/d6/LanguageContentSettingsTaxonomyVocabulary.php \Drupal\language\Plugin\migrate\source\d6\LanguageContentSettingsTaxonomyVocabulary::query()
  2. 9 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
  1. 8 core/modules/language/src/Plugin/migrate/source/d7/LanguageContentSettingsTaxonomyVocabulary.php \Drupal\language\Plugin\migrate\source\d7\LanguageContentSettingsTaxonomyVocabulary::query()
  2. 10 core/modules/language/src/Plugin/migrate/source/d7/LanguageContentSettingsTaxonomyVocabulary.php \Drupal\language\Plugin\migrate\source\d7\LanguageContentSettingsTaxonomyVocabulary::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides Vocabulary::query

File

core/modules/language/src/Plugin/migrate/source/d7/LanguageContentSettingsTaxonomyVocabulary.php, line 24

Class

LanguageContentSettingsTaxonomyVocabulary
Drupal 7 i18n vocabularies source from database.

Namespace

Drupal\language\Plugin\migrate\source\d7

Code

public function query() {
  $query = parent::query();
  if ($this
    ->getDatabase()
    ->schema()
    ->fieldExists('taxonomy_vocabulary', 'i18n_mode')) {
    $query
      ->addField('v', 'language');
    $query
      ->addField('v', 'i18n_mode');
  }
  return $query;
}