public function LocationGeolocationFieldStorage::prepareRow in Geolocation Field 8.3
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 Field::prepareRow
File
- modules/
geolocation_address/ src/ Plugin/ migrate/ source/ LocationGeolocationFieldStorage.php, line 52
Class
- LocationGeolocationFieldStorage
- Drupal 7 geolocation field storage source for D7 location fields.
Namespace
Drupal\geolocation_address\Plugin\migrate\sourceCode
public function prepareRow(Row $row, $keep = TRUE) {
if (!parent::prepareRow($row)) {
return FALSE;
}
$geolocation_field_name = Location::getGeolocationFieldName($row
->getSourceProperty('field_name'));
$row
->setSourceProperty('geolocation_field_name', $geolocation_field_name);
return TRUE;
}