You are here

public function VocabularyTranslation::prepareRow in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/taxonomy/src/Plugin/migrate/source/d6/VocabularyTranslation.php \Drupal\taxonomy\Plugin\migrate\source\d6\VocabularyTranslation::prepareRow()

Adds additional data to the row.

Parameters

\Drupal\migrate\Row $row: The row object.

Return value

bool FALSE if this row needs to be skipped.

Overrides SourcePluginBase::prepareRow

File

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

Class

VocabularyTranslation
Drupal 6 i18n vocabulary translations from source 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);
}