public function LegalConditions::prepareRow in Legal 8
Same name and namespace in other branches
- 2.0.x 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\d7Code
public function prepareRow(Row $row) {
$id = $row
->getSourceProperty('fid');
$row
->setSourceProperty('condition_id', $id);
return parent::prepareRow($row);
}