function VocabularyTranslation::prepareRow

Overrides SourcePluginBase::prepareRow

File

core/modules/taxonomy/src/Plugin/migrate/source/d6/VocabularyTranslation.php, line 60

Class

VocabularyTranslation
Drupal 6 i18n vocabulary translations source from database.

Namespace

Drupal\taxonomy\Plugin\migrate\source\d6

Code

public function prepareRow(Row $row) {
  // For ease of reading the migration use 'language' as the property name for
  // the language.
  $language = $row->getSourceProperty('ltlanguage');
  $row->setSourceProperty('language', $language);
  return parent::prepareRow($row);
}

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