You are here

public function VocabularyTranslation::prepareRow in Drupal 8

Same name and namespace in other branches
  1. 9 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 53

Class

VocabularyTranslation
Drupal 6 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);
}