You are here

public function LegalConditions::prepareRow in Legal 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/migrate/source/d7/LegalConditions.php \Drupal\legal\Plugin\migrate\source\d7\LegalConditions::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

src/Plugin/migrate/source/d7/LegalConditions.php, line 61

Class

LegalConditions
Drupal 7 source plugin for Legal T&Cs.

Namespace

Drupal\legal\Plugin\migrate\source\d7

Code

public function prepareRow(Row $row) {
  $id = $row
    ->getSourceProperty('fid');
  $row
    ->setSourceProperty('condition_id', $id);
  return parent::prepareRow($row);
}