public function EntityLegalDocumentVersion::prepareRow in Entity Legal 3.0.x
Same name and namespace in other branches
- 8.2 src/Plugin/migrate/source/EntityLegalDocumentVersion.php \Drupal\entity_legal\Plugin\migrate\source\EntityLegalDocumentVersion::prepareRow()
- 4.0.x src/Plugin/migrate/source/EntityLegalDocumentVersion.php \Drupal\entity_legal\Plugin\migrate\source\EntityLegalDocumentVersion::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/ EntityLegalDocumentVersion.php, line 54
Class
- EntityLegalDocumentVersion
- Drupal entity legal document version migration source plugin.
Namespace
Drupal\entity_legal\Plugin\migrate\sourceCode
public function prepareRow(Row $row) {
// Get Field API field values.
foreach (array_keys($this
->getFields('entity_legal_document_version', $row
->getSourceProperty('document_name'))) as $field) {
$name = $row
->getSourceProperty('vid');
$row
->setSourceProperty($field, $this
->getFieldValues('entity_legal_document_version', $field, $name));
}
return parent::prepareRow($row);
}