function LanguageContentSettingsTaxonomyVocabulary::query

Same name in this branch
  1. 9 core/modules/language/src/Plugin/migrate/source/d7/LanguageContentSettingsTaxonomyVocabulary.php \Drupal\language\Plugin\migrate\source\d7\LanguageContentSettingsTaxonomyVocabulary::query()
Same name in other branches
  1. 8.9.x core/modules/language/src/Plugin/migrate/source/d6/LanguageContentSettingsTaxonomyVocabulary.php \Drupal\language\Plugin\migrate\source\d6\LanguageContentSettingsTaxonomyVocabulary::query()
  2. 8.9.x core/modules/language/src/Plugin/migrate/source/d7/LanguageContentSettingsTaxonomyVocabulary.php \Drupal\language\Plugin\migrate\source\d7\LanguageContentSettingsTaxonomyVocabulary::query()
  3. 10 core/modules/language/src/Plugin/migrate/source/d6/LanguageContentSettingsTaxonomyVocabulary.php \Drupal\language\Plugin\migrate\source\d6\LanguageContentSettingsTaxonomyVocabulary::query()
  4. 10 core/modules/language/src/Plugin/migrate/source/d7/LanguageContentSettingsTaxonomyVocabulary.php \Drupal\language\Plugin\migrate\source\d7\LanguageContentSettingsTaxonomyVocabulary::query()
  5. 11.x core/modules/language/src/Plugin/migrate/source/d6/LanguageContentSettingsTaxonomyVocabulary.php \Drupal\language\Plugin\migrate\source\d6\LanguageContentSettingsTaxonomyVocabulary::query()
  6. 11.x core/modules/language/src/Plugin/migrate/source/d7/LanguageContentSettingsTaxonomyVocabulary.php \Drupal\language\Plugin\migrate\source\d7\LanguageContentSettingsTaxonomyVocabulary::query()

Overrides SqlBase::query

File

core/modules/language/src/Plugin/migrate/source/d6/LanguageContentSettingsTaxonomyVocabulary.php, line 26

Class

LanguageContentSettingsTaxonomyVocabulary
Drupal 6 i18n vocabularies source from database.

Namespace

Drupal\language\Plugin\migrate\source\d6

Code

public function query() {
    $query = $this->select('vocabulary', 'v')
        ->fields('v', [
        'vid',
    ]);
    if ($this->getDatabase()
        ->schema()
        ->fieldExists('vocabulary', 'language')) {
        $query->addField('v', 'language');
    }
    return $query;
}

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