You are here

public function TermTranslation::prepareRow in Drupal 9

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

Class

TermTranslation
Drupal 7 i18n taxonomy terms from source database.

Namespace

Drupal\taxonomy\Plugin\migrate\source\d7

Code

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