public function Log::prepareRow in Log entity 2.x
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/ Log.php, line 54
Class
- Log
- Log source from database.
Namespace
Drupal\log\Plugin\migrate\source\d7Code
public function prepareRow(Row $row) {
$id = $row
->getSourceProperty('id');
$type = $row
->getSourceProperty('type');
// Get Field API field values.
foreach ($this
->getFields('log', $type) as $field_name => $field) {
$row
->setSourceProperty($field_name, $this
->getFieldValues('log', $field_name, $id));
}
return parent::prepareRow($row);
}