LanguageContentSettingsTaxonomyVocabulary.php in Drupal 10
File
core/modules/language/src/Plugin/migrate/source/d7/LanguageContentSettingsTaxonomyVocabulary.php
View source
<?php
namespace Drupal\language\Plugin\migrate\source\d7;
use Drupal\taxonomy\Plugin\migrate\source\d7\Vocabulary;
class LanguageContentSettingsTaxonomyVocabulary extends Vocabulary {
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;
}
public function fields() {
$fields = parent::fields();
$fields['language'] = $this
->t('i18n language');
$fields['i18n_mode'] = $this
->t('i18n mode');
return $fields;
}
}