You are here

public function TermTranslation::prepareRow in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/taxonomy/src/Plugin/migrate/source/d7/TermTranslation.php \Drupal\taxonomy\Plugin\migrate\source\d7\TermTranslation::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 Term::prepareRow

File

core/modules/taxonomy/src/Plugin/migrate/source/d7/TermTranslation.php, line 37

Class

TermTranslation
Gets i18n taxonomy terms from source database.

Namespace

Drupal\taxonomy\Plugin\migrate\source\d7

Code

public function prepareRow(Row $row) {
  parent::prepareRow($row);
  $row
    ->setSourceProperty('language', $row
    ->getSourceProperty('td_language'));
}